Releases: OpenPublicMedia/nprapi-wordpress
Updated pattern match for NPR IDs
- Updated ID pattern matching on get_stories.php to accommodate NPR's new alphanumeric IDs
Full Changelog: v1.9.6.1...v1.9.7
Story API Retirement
Added messaging about the eventual retirement of the Story API, and the publishing of the new CDS plugin that will replace it.
Full Changelog: v1.9.6...v1.9.6.1
Canonical URL Fixes
Articles imported from the API will now show the original article URL as the canonical URL in the header
Full Changelog: v1.9.5.2...v1.9.6
Minor Bugfix
What's Changed
- added a check in
get_body_with_layout
to skip storytext objects in layout with null elements
Full Changelog: v1.9.5.1...v1.9.5.2
MySQL8 Compat, Bug Fixes
What's Changed
- Adding
'no_found_posts' => false
to the query inupdate_posts_from_stories()
for greater MySQL 8 compatability. Will also help on sites with large archives of posts (credit to @tamw-wnet for the catch and fix) - Adding support for admin messaging regarding the sunsetting of the NPR Story API and this plugin. Will actually roll the messaging out once the successor plugin (NPR CDS) is available in the plugin directory
- Fixing an error message pointed out by Ray Hollister (Issue #23)
Full Changelog: v1.9.5...v1.9.5.1
Thumbnail Resizer and Pre-Push Filter
What's Changed
- Added a check for image dimensions for imported article thumbnails, and use NPR resizer if necessary (credit to @tamw-wnet for the catch and PR) PR #22
- Added filter
npr_pre_article_push
to allow for modifying the organization ID or API key before pushing an article. Example: if you run a site with more than one org ID in the Story API and you want certain categories to push to certain IDs, you can create a function to hook into that filter and modify the org ID and API key as needed
Full Changelog: v1.9.4.1...v1.9.5
Post Thumbnail Updates
Bug Fixes
- Fixed an issue where updating imported articles was not also updating the post thumbnail (all credit to @tamw-wnet for the catch) Issue #19
Full Changelog: v1.9.4...v1.9.4.1
A Bevy of Bug Fixes
Bug Fixes
- Changed
nprstory_get_datetimezone()
to generate a newDateTimeZone
off of thetimezone_string
WP option. The previous method tried to usegmt_offset
in seconds, butDateTimeZone
requires a string - Fixed an issue where inserted images in imported stories might have quotation marks in their alt tags
- Fixed an issue where images were being duplicated while sideloading (all credit to @tamw-wnet for the catch) Issue #18
Full Changelog: v1.9.3.1...v1.9.4
Simple Story Bug Fix
This release features a bug fix for the Simple Story element in imported articles.
Bug Fixes
- Fixing errors when importing articles with Simple Story elements. Elements are now properly formatted and images displayed (when available)
Full Changelog: v1.9.3...v1.9.3.1
Bug Fixes, Config Changes, Feature Updates
This release brings with it a few bug fixes, a couple of configuration changes, and a couple of new features.
Bug Fixes
- Media credit metadata on imported images is now attached to the image itself and the not the parent post
add_paragraph_tag()
function has been updated to properly address<div>
elements in imported stories, (e.g.<div class="storyMajorUpdateDate">
,<div class="fullattribution">
)
Configuration Change
- PUSH settings for bylines, story body, and media credits will now be applied when PULLing or importing posts
Feature Updates
- Added support for guest authors via the Co-Authors Plus plugin when importing articles. The importer now does a search for guest authors and will attach them to the post if they already exist in your database
- Added a user setting to ignore the primary image on imported articles when
layout
data is provided in the API. This will be useful for site themes that automatically display featured images, so that they don't end up with duplicates. Thank you for @bdivver for the suggestion (PR #17)
Full Changelog: v1.9.2...v1.9.3