This repository has been archived by the owner on Mar 26, 2021. It is now read-only.
Releases: npr/nprapi-wordpress
Releases · npr/nprapi-wordpress
Version 1.8
Download this plugin at https://wordpress.org/plugins/npr-story-api/
Changes
- Fixes issue preventing pushing to the API, introduced in V1.7. PR #60 for issue #57.
- Fixes issue where images were not properly sideloaded. PR #60 for issue #59.
- Fixes invalid GMT offset error when creating new DateTimeZone object in post metabox. PR #53 for issue #52.
- When interacting with a site using the plugin in an unconfigured state, users will be prompted to set the NPR Story API Push URL. PR #56 for issue #51.
- Miscellaneous code quality improvements.
Version 1.7.1
Changes
This release updates the plugin's metadata on WordPress.org, and introduces no new plugin functionality. For a review of new features introduced in 1.7, see the 1.7 release notes.
- Bumps the "Tested up to:" WordPress version to 4.9 (#50)
NPR Story API for WordPress Version 1.7
Changes
- The Story API box that appears in the post editor has been refreshed:
- Instead of requiring a separate action to push the story to the Story API, the content will be pushed whenever the content is saved in WordPress, if the "Send to NPR API" box is checked.
- The box now includes options to include the story for listening in NPR One, and to set the story as "featured" in NPR One. This feature includes the option to set an expiration date, after which time the story will not appear in NPR One.
- HTTPS is now supported for accessing the Story API. (#44)
- The push and pull post types are now respected, thanks to #41 from @chrisenterey.
- PHP 7 is now supported, thanks to #42 from @tjuddill.
- Several broken links in the documentation have been repaired. (#44)
- Automated tests are now run against an expanded list of WordPress and PHP versions, as described in pull request #46.
NPR Story API for WordPress Version 1.6
- Added meta box to post edit page to explicitly push a story to NPR One
- Added documentation
- If pushing a story to NPR fails, the error message is displayed on the post edit page
- If it succeeds, a success message is displayed
- Rename the plugin to "NPR Story API"
- The plugin now requires certain WordPress capabilities before performing API actions:
- deleting posts in the API now requires the
delete_others_posts
capability for the user trying to delete the post. In effect, this limits deletion of stories from the NPR API to admins and editors. - pushing stories to the API requires the
publish_posts
capability, which means that contributors and guests can't push to NPR. - pulling posts from the API requires the
edit_posts
capability, meaning that contributors and guests can't pull from NPR. We may want to revisit this in the future, or make the permissions filterable if sites using the plugin want to lock permissions down or open them up.
- deleting posts in the API now requires the
- A number of settings in the admin now use the number input type instead of text fields
- Added unit tests for much of the PHP code
- Most functions were renamed to use the prefix nprstory_ instead of ds_npr_ or no common prefix. This does not affect
- Added nonces, input sanitization, and input validation for settings.
DS_NPR_API
class now uses new-style__construct()
constructor.- Removed
/wp-admin/includes/admin.php
,/wp-load.php
,/wp-includes/class-wp-error.php
from the cron job function, see 4b3d65a and cf2dfa3 - the cron job works without them.