diff --git a/README.md b/README.md index 540f0e8..4a6242f 100644 --- a/README.md +++ b/README.md @@ -7,8 +7,8 @@ A collection of tools for publishing from and to NPR's Content Distribution Serv - Requires at least: 4.0 - Tested up to: 6.6 - Requires PHP: 8.0 -- Version: 1.3 -- Stable tag: 1.3 +- Version: 1.3.1 +- Stable tag: 1.3.1 - Author: Open Public Media - Author URI: https://github.com/OpenPublicMedia/ - License: GPLv2 @@ -77,6 +77,9 @@ NPR Stories having been retrieved ## Changelog +### V.1.3.1 +* Fixed a bug where the service ID was not being set properly on uploaded articles + ### V.1.3 * "Org ID" renamed to "Service ID" in various places to try to better reflect the guidance from NPR * Service IDs in `settings.php` can now be a comma-separated list, if all posts will be co-owned diff --git a/classes/npr_json.php b/classes/npr_json.php index 0281c0a..e19c8a8 100644 --- a/classes/npr_json.php +++ b/classes/npr_json.php @@ -17,7 +17,7 @@ function npr_cds_to_json( $post ): bool|string { $cds_id = $prefix . '-' . $post->ID; $story->id = $cds_id; - $service_id = get_option( 'npr_cds_service_id' ); + $service_id = get_option( 'npr_cds_org_id' ); if ( has_filter( 'npr_cds_push_service_ids_filter' ) ) { $service_id = apply_filters( 'npr_cds_push_service_ids_filter', $service_id, $post ); } diff --git a/composer.json b/composer.json index 736d88a..716b347 100644 --- a/composer.json +++ b/composer.json @@ -5,7 +5,7 @@ "type" : "wordpress-plugin", "license" : "GPL-2.0+", "dist": { - "url": "https://github.com/OpenPublicMedia/npr-cds-wordpress/archive/refs/tags/v1.3.zip", + "url": "https://github.com/OpenPublicMedia/npr-cds-wordpress/archive/refs/tags/v1.3.1.zip", "type": "zip" }, "authors": [ diff --git a/npr_cds.php b/npr_cds.php index 20f3a0c..66385ae 100644 --- a/npr_cds.php +++ b/npr_cds.php @@ -3,7 +3,7 @@ * Plugin Name: NPR Content Distribution Service * Plugin URI: https://github.com/OpenPublicMedia/npr-cds-wordpress * Description: A collection of tools for reusing content from NPR.org, now maintained and updated by NPR member station developers - * Version: 1.3 + * Version: 1.3.1 * Requires at least: 4.0 * Requires PHP: 8.0 * Author: Open Public Media diff --git a/readme.txt b/readme.txt index 639636b..acaf54c 100644 --- a/readme.txt +++ b/readme.txt @@ -6,8 +6,8 @@ Tags: npr, news, public radio, api Requires at least: 4.0 Tested up to: 6.6 Requires PHP: 8.0 -Version: 1.3 -Stable tag: 1.3 +Version: 1.3.1 +Stable tag: 1.3.1 Author: Open Public Media Author URI: https://github.com/OpenPublicMedia/ License: GPLv2 @@ -74,6 +74,9 @@ NPR Stories having been retrieved == Changelog == += V.1.3.1 = +* Fixed a bug where the service ID was not being set properly on uploaded articles + = V.1.3 = * "Org ID" renamed to "Service ID" in various places to try to better reflect the guidance from NPR * Service IDs in `settings.php` can now be a comma-separated list, if all posts will be co-owned