Releases: alleyinteractive/apple-news
v2.1.2
- Bugfix: Fixed an error that would occur if sections could not be fetched from the API, where the function being called to handle the error didn't exist.
- Bugfix: Removed unnecessary argument to
libxml_clear_errors
which was causing an error in PHP 8.
v2.1.1-built
A version of v2.1.1 that contains pre-built JavaScript assets for Gutenberg. This version matches what is deployed to WordPress.org, and is suitable for inclusion via submodule.
v2.1.1
- Enhancement: Clarifies source of admin messages coming from the plugin to ensure that they say "Apple News."
- Enhancement: Adds checks for plugin initialization before making REST responses.
- Enhancement: Adds documentation to all hooks, which has been synchronized with the wiki.
- Bugfix: Resolves an issue where API information (e.g., article ID) were removed upon save when using the Gutenberg editor, which would cause articles in WordPress to become unlinked from articles in Apple News, and would result in a duplicate article error if publishing again was attempted.
- Bugfix: Uses new
wp_after_insert_post
hook, if available (was added in WP 5.6) to ensure that postmeta and terms are saved before running an autosync to Apple. - Bugfix: Pullquote styles are now being included properly if alignments other than the default are used.
- Bugfix: Stops using
get_user_attribute
on VIP Go, preferringget_user_meta
instead. - Bugfix: Resolves an error when using theme preview related to a bad script localization reference.
- Bugfix: Ensures that notices are available via the REST API for custom post types.
- Bugfix: Replaces admin sections error display function.
- Bugfix: Updates
pluginSidebar
sections default values to prevent save errors in some cases. - Bugfix: Outdated links to Apple News docs have been replaced with their modern equivalents.
v2.1.0-built
A version of v2.1.0 that contains pre-built JavaScript assets for Gutenberg. This version matches what is deployed to WordPress.org, minus some development and wiki image files, and is suitable for inclusion via submodule.
v2.1.0
- Enhancement: The cover component now supports captions. If a featured image is used for the cover, the caption will come from the attachment itself in the database. If the first image from the content is used, the caption will be read from the HTML. There is also a new filter, apple_news_exporter_cover_caption, which allows for filtering of the caption text.
- Enhancement: Adds a new End of Article module, available via the Customize JSON feature, to allow publishers to insert content at the end of every article, customized per theme.
- Enhancement: HTML is now allowed in lightbox image captions.
- Enhancement: Allows configuration of cover images in the sidebar / metabox explicitly, rather than pulling them out of the featured image or main content.
- Enhancement: Adds support for Brightcove videos via the Brightcove Video Connect plugin for videos added via either the Gutenberg block or the shortcode. Note that this feature will only work if you contact Apple support to link your Brightcove account with your Apple News channel.
- Enhancement: Replaces usage of the deprecated
advertisingSettings
object with the newautoplacement.advertising
object. Bumps default advertisement frequency from 1 to 5 (out of 10). - Enhancement: Adds an error to the notice bar if the
DATE_NOT_RECENT
API error is encountered advising the user to synchronize the time on their server to restore API connectivity. - Enhancement: Adds padding above and below
EmbedWebVideo
components. - Enhancement: Converts notices in a block editor context to native block editor notice components, rather than the previous custom implementation.
- Enhancement: In the block editor, warns when the post has unsaved changes, and publishing to Apple News would result in unsaved changes not being published.
- Bugfix: Removes Cover Art configuration, as Cover Art is no longer used by Apple.
- Bugfix: Fixes the logic in the default theme checker to properly check the configured values against the defaults and prompt the user if they are using the default theme that ships with Apple News without modification.
- Bugfix: Fixes a bug where renaming a theme would not carry over any changes made to the theme, and renaming the active theme would make it no longer active.
- Bugfix: If the same image is used for the featured image and the first image embedded into the post, it no longer shows up twice.
- Bugfix: Removed extra space between an image and its caption.
- Bugfix: If a custom excerpt is used, but the custom excerpt repeats text in its entirety from elsewhere in the article (e.g., the first paragraph), then the Intro component will be skipped. This prevents an issue where Apple will flag articles that contain repeated text due to the Intro component using a custom excerpt suitable in a WordPress context but not an Apple News context.
- Bugfix: Select menus are no longer oversized on the settings page.
- Updated filter name for
get_sections_for_post
toapple_news_get_sections_for_post
.
v2.0.8-built
A version of v2.0.8 that contains pre-built JavaScript assets for Gutenberg. This version matches what is deployed to WordPress.org, minus some development and wiki image files, and is suitable for inclusion via submodule.
v2.0.8
- Enhancement: Adds styles for Button elements that are links which are added by the Gutenberg editor.
- Enhancement: Bumps the Apple News Format version from 1.7 to 1.11 to make support for new features possible, like LinkButton.
v2.0.7-built
A version of v2.0.7 that contains pre-built JavaScript assets for Gutenberg. This version matches what is deployed to WordPress.org, minus some development and wiki image files, and is suitable for inclusion via submodule.
v2.0.7
- Fixes a bug where sections by category is not checked by default for new posts.
- Fixes visual bug when manual section selection are visible.
v2.0.6-built
A version of v2.0.6 that contains pre-built JavaScript assets for Gutenberg. This version matches what is deployed to WordPress.org, minus some development and wiki image files, and is suitable for inclusion via submodule.