diff --git a/CHANGELOG.md b/CHANGELOG.md index 610465b3..18f32401 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [5.0.2] - 2022-10-29 + +- Fix: Make `Instant_Articles_Post::$instant_article` property public. + ## [5.0.1] - 2022-10-18 - Refresh dependency that handles fixing of transformer encodings. @@ -244,7 +248,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), - [#39](https://github.com/automattic/fb-instant-articles/pull/39) Jetpack compat: YouTube and Facebook embeds (@bjornjohansen) - [#22](https://github.com/automattic/fb-instant-articles/pull/22) Migrate the wpcom-helper.php from WordPress.com. (@Automattic) -[Unreleased]: https://github.com/automattic/fb-instant-articles/compare/5.0.1...HEAD +[Unreleased]: https://github.com/automattic/fb-instant-articles/compare/5.0.2...HEAD +[5.0.2]: https://github.com/automattic/fb-instant-articles/compare/5.0.1...5.0.2 [5.0.1]: https://github.com/automattic/fb-instant-articles/compare/5.0.0...5.0.1 [5.0.0]: https://github.com/automattic/fb-instant-articles/compare/4.2.1...5.0.0 [4.2.1]: https://github.com/automattic/fb-instant-articles/compare/4.2.0...4.2.1 diff --git a/class-instant-articles-post.php b/class-instant-articles-post.php index 0d150032..db09bcc3 100644 --- a/class-instant-articles-post.php +++ b/class-instant-articles-post.php @@ -60,9 +60,17 @@ class Instant_Articles_Post { public $transformer = null; /** - * @var InstantArticle|mixed|null + * Instant Article object. + * + * This is the object that will be used to build the Instant Article markup. + * + * It's public so that it can continue to be accessed by outside code. + * + * @since 5.0.0 + * + * @var InstantArticle The Instant Article object. */ - private $instant_article; + public $instant_article; /** * Setup data and build the content diff --git a/facebook-instant-articles.php b/facebook-instant-articles.php index cc868bb1..c42c1863 100644 --- a/facebook-instant-articles.php +++ b/facebook-instant-articles.php @@ -10,7 +10,7 @@ * Plugin Name: Instant Articles for WP * Description: Add support for Instant Articles for Facebook to your WordPress site. * Author: Automattic, Dekode, Facebook - * Version: 5.0.1 + * Version: 5.0.2 * Text Domain: instant-articles * License: GPL-2.0-or-later * License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -21,7 +21,7 @@ defined( 'ABSPATH' ) || die(); -const IA_PLUGIN_VERSION = '5.0.1'; +const IA_PLUGIN_VERSION = '5.0.2'; const IA_PLUGIN_FILE = __FILE__; const IA_PLUGIN_FORCE_SUBMIT_KEY = 'instant_articles_force_submit'; diff --git a/readme.txt b/readme.txt index 9b61bd88..74b63930 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: instant-articles, fb, mobile, instant articles Requires at least: 4.7 Requires PHP: 7.1 Tested up to: 6.0.3 -Stable tag: 5.0.1 +Stable tag: 5.0.2 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -93,6 +93,10 @@ Usually simply visiting the permalinks settings page in the WordPress dashboard 1. Customized transformer rules enabled on the main Settings page. The particular configuration shown here would cause `` and `` tags in the source markup to be rendered in *italics* and **bold**, respectively, in the generated Instant Article. == Changelog == +### 5.0.2 - 2022-10-29 + +- Fix: Make `Instant_Articles_Post::$instant_article` property public. + ### 5.0.1 - 2022-10-18 - Refresh dependency that handles fixing of transformer encodings.