Skip to content

Releases: alleyinteractive/apple-news

v1.4.4

03 May 15:24
03009e7
Compare
Choose a tag to compare
  • Enhancement: Added the apple_news_notification_headers filter to allow headers to be added to the notification email message. Props to @paulschreiber for the addition.
  • Bugfix: Improved handling of UTF-8 multibyte characters to provide better support for the French language.
  • Updated the description that appears below the section selection checkboxes to more accurately explain the current behavior.
  • Updated to the latest version of the phpcs and vipwpcs standards, resolving most issues, while whitelisting some rules for resolution in the next version. Props to @paulschreiber for doing most of the work here.

v1.4.3

21 Sep 02:25
9d82891
Compare
Choose a tag to compare
  • Bugfix: Decodes HTML entities in URLs before performing remote file exists check for embedded media. Props to @kasparsd for the fix.

v1.4.2

17 Aug 19:50
c0c86db
Compare
Choose a tag to compare
  • Bugfix: Issues with making updates via the quick edit interface and on unsupported post types are now fixed, as the publish action bails out early if the nonce is not set, which occurs when the metabox does not load. Props to @danielbachhuber and @srtfisher for the fixes.
  • Added 'apple_news_should_post_autopublish' filter to override automatic publish settings on a per-article basis. Props to @srtfisher for the update.

v1.4.1

02 Jul 14:54
c9107b5
Compare
Choose a tag to compare
  • Bugfix: Post types that were not registered with Publish to Apple News were failing the nonce check on publish/update because the metabox was not present. Refined the save_post hook to register only for post types with Publish to Apple News support to avoid this situation.

v1.4.0

21 Jun 20:22
1c2bcdd
Compare
Choose a tag to compare
  • Set HTML to the default output format (instead of Markdown) for new installs. HTML format is now recommended for all installs. Support for Markdown may be removed in a future version. Individual components now have a filter to toggle HTML support on or off for each component.
  • Added support for HTML format to Heading and Quote components.
  • Added support for tables (requires HTML support to be turned on) with new table styles defined in example themes, and intelligent defaults applied to existing themes based on comparable settings.
  • Made Cover Art feature opt-in for new installs to avoid creating a plethora of additional image crops which may not be necessary. Sets the setting to enabled for existing installations during upgrade, since there is not a good way to know whether a user has utilized this feature without running a very expensive postmeta query.
  • Added a "Refresh Sections" button on the Sections page to clear the cached settings list.
  • Set the default publish and delete capabilities to the corresponding post publish and delete capabilities for the post type being edited, rather than requiring "manage_options," which is typically an administrator-only capability. This allows users with the ability to publish posts to also publish those posts to Apple News.
  • Removed overzealous check for invalid Unicode sequences. Over the past several releases, enhancements have been made to better identify and fix problems with content that would cause issues upon pushing to Apple News. Therefore, the check for invalid Unicode character sequences is now not providing much value, and is inhibiting valid content (including emoji) from being pushed to Apple News.
  • Added a function (apple_news_is_exporting) for determining whether an export is happening, which can be used in themes and plugins to change behavior if a hook is being executed in the context of an Apple News request.
  • Added context to the message that is displayed when a post push is skipped explaining why it was skipped.
  • Added a framework for saving dismissed state of persistent admin notices (such as those that appear after an upgrade) so that the close button causes the notice to not appear again for that user.
  • Set the language code from blog settings for document properties (thanks @ffffelix).
  • Added support for the isHidden property (thanks @jonesmatthew).
  • Added support for Jetpack Tiled Galleries.
  • Swapped deprecated wpcom_vip_* functions for core versions.
  • Added expand/collapse functionality to the theme editor to reduce scrolling between where settings are set and the preview area.
  • Brought entire codebase up to WordPress coding standards, which is now being verified through PHP CodeSniffer on each pull request.
  • Updated Travis configuration for more robust testing.
  • Bumped minimum required version to PHP 5.6 due to incompatibility with certain tools (e.g., Composer) required for running builds and tests.
  • Security: Added nonce verification to all remaining form data processing sections.
  • Bugfix: Added a handler for WordPress.com/OpenGraph Facebook embeds so that they properly render as Facebook components instead of a blockquote.
  • Bugfix: Addressed an issue with sanitization that did not properly strip out script tags that contain CDATA with a greater than symbol.
  • Bugfix: Empty meta_component_order settings can now be saved properly on the theme edit screen.
  • Bugfix: No longer assumes that any embed that isn't YouTube is actually Vimeo. Performs a strict check for Vimeo embed signatures and drops the embed if it does not match known providers.
  • Bugfix: Re-added erroneously removed apple_news_fonts_list hook.
  • Bugfix: Fixed an error where the list of sections was occasionally being encoded as an object instead of an array.
  • Bugfix: Fixed the undefined message warning if an article was deleted from iCloud, thereby breaking the linkage between the plugin and the Apple News API, to explain why the link was broken.
  • Bugfix: Fixed undefined index and undefined variable notices in a few places.
  • Bugfix: Fixed an assignment bug in class-admin-apple-post-sync.php (thanks @lgladdy and @dhanendran).
  • Bugfix: Prevented empty text nodes from being added in a variety of ways, which was causing errors on publish in some cases, and unwanted extra space in articles in others.
  • Bugfix: Prevented Apple News API timeouts from causing the entire WordPress install to hang by only using long remote request timeouts when making a POST request to the Apple News API.
  • Bugfix: Fixed improper handling of several different types of links, such as empty URLs, malformed URLs, root-relative URLs, and anchor links.
  • Bugfix: Properly decoded ampersands and other HTML-encoded entities when using Markdown format.
  • Bugfix: Removed style tags and their contents where they appear inline.

v1.3.0

10 Aug 15:11
Compare
Choose a tag to compare
  • Moved JSON customizations to themes so that JSON can be customized on a per-theme basis.
  • Enabled access to postmeta in custom JSON so that values from postmeta fields can be inserted into customized JSON.
  • Removed all formatting settings from the settings option in favor of storing them in themes. This is a potentially breaking change if you are using custom code that relies on formatting settings stored in the settings option.
  • Removed the option for JSON customization in favor of moving those settings to themes. This is a potentailly breaking change if you are accessing the custom JSON option directly.
  • Deprecated access of formatting settings using the Settings object.
  • Added a new Theme object to handle all formatting settings.
  • Bugfix: Fixed a bug where themes were not being automatically switched via section mappings.
  • Bugfix: HTML in titles is now supported.

v1.2.7

10 Aug 15:46
Compare
Choose a tag to compare
  • Fixed a bug where HTML tags were being stripped before being sent to the API.
  • Fixed a bug where older theme files couldn't be imported if new formatting settings were added.

v1.2.6

10 Aug 15:48
Compare
Choose a tag to compare
  • WP Standards: Ensured all instances of in_array use the strict parameter
  • WP Standards: Replaced all remaining instances of == with ===
  • WP Standards: Replaced all remaining instances of != with !==
  • WP Standards: Ensured all calls to wp_die with translated strings were escaped
  • WP Standards: Added escaping in a few additional places
  • WP Standards: Replaced all remaining instances of json_encode with wp_json_encode
  • Bugfix: Root-relative URLs for images, audio, and video are now supported
  • Bugfix: Images, audio, and video with blank or invalid URLs are no longer included, avoiding an error with the API
  • Bugfix: Image blocks with multiple src attributes (e.g., when using a lazyload plugin with a raw <img> tag in the <noscript> block) are now intelligently probed

v1.2.5

30 Mar 17:06
Compare
Choose a tag to compare

Version 1.2.5 is a bugfix-only release that addresses five issues:

  • Bugfix: Fixed version of PHPUnit at 5.7.* for PHP 7.* and 4.8.* for PHP 5.* in the Travis configuration to fix a bug with incompatibility with PHPUnit 6
  • Bugfix: Set the base URL for the Apple News API to https://news-api.apple.com everywhere for better adherence to official guidance in the API docs (props to ffffelix for providing the initial PR)
  • Bugfix: Made the administrator email on the settings screen no longer required if debug mode is set to "no"
  • Bugfix: Converted the error that occurs when a list of sections cannot be retrieved from the API to a non-fatal to fix a problem where the content of the editor would appear white-on-white
  • Bugfix: Resolved an error that occurs on some systems during plugin activation on the Add New screen due to a duplicated root plugin file in the WordPress.org version of the plugin

v1.2.4

10 Aug 15:49
Compare
Choose a tag to compare
  • Added an interface for customizing of component JSON
  • Added support for making certain components inactive
  • Added hanging punctuation option for pull quotes
  • Added additional styling options for drop caps
  • Added support for nested images in lists
  • Added support for Instagram oEmbeds
  • Updated the interface and workflow for customizing cover art