Skip to content

Commit

Permalink
Fixed a bug where the service ID was not being set properly on upload…
Browse files Browse the repository at this point in the history
…ed articles
  • Loading branch information
jwcounts committed Nov 7, 2024
1 parent 9616107 commit 9364dde
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 7 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -77,6 +77,9 @@ NPR Stories having been retrieved

## Changelog
<!-- copy from readme.txt to here -->
### 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
Expand Down
2 changes: 1 addition & 1 deletion classes/npr_json.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
2 changes: 1 addition & 1 deletion npr_cds.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 5 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9364dde

Please sign in to comment.