Skip to content
This repository was archived by the owner on Apr 17, 2023. It is now read-only.

Commit 59ae2a1

Browse files
authored
Merge pull request #1112 from Automattic/hotfix/5.0.2
2 parents 51e9046 + 7c277eb commit 59ae2a1

File tree

4 files changed

+23
-6
lines changed

4 files changed

+23
-6
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44

55
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).
66

7+
## [5.0.2] - 2022-10-29
8+
9+
- Fix: Make `Instant_Articles_Post::$instant_article` property public.
10+
711
## [5.0.1] - 2022-10-18
812

913
- 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/),
244248
- [#39](https://github.com/automattic/fb-instant-articles/pull/39) Jetpack compat: YouTube and Facebook embeds (@bjornjohansen)
245249
- [#22](https://github.com/automattic/fb-instant-articles/pull/22) Migrate the wpcom-helper.php from WordPress.com. (@Automattic)
246250

247-
[Unreleased]: https://github.com/automattic/fb-instant-articles/compare/5.0.1...HEAD
251+
[Unreleased]: https://github.com/automattic/fb-instant-articles/compare/5.0.2...HEAD
252+
[5.0.2]: https://github.com/automattic/fb-instant-articles/compare/5.0.1...5.0.2
248253
[5.0.1]: https://github.com/automattic/fb-instant-articles/compare/5.0.0...5.0.1
249254
[5.0.0]: https://github.com/automattic/fb-instant-articles/compare/4.2.1...5.0.0
250255
[4.2.1]: https://github.com/automattic/fb-instant-articles/compare/4.2.0...4.2.1

class-instant-articles-post.php

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,17 @@ class Instant_Articles_Post {
6060
public $transformer = null;
6161

6262
/**
63-
* @var InstantArticle|mixed|null
63+
* Instant Article object.
64+
*
65+
* This is the object that will be used to build the Instant Article markup.
66+
*
67+
* It's public so that it can continue to be accessed by outside code.
68+
*
69+
* @since 5.0.0
70+
*
71+
* @var InstantArticle The Instant Article object.
6472
*/
65-
private $instant_article;
73+
public $instant_article;
6674

6775
/**
6876
* Setup data and build the content

facebook-instant-articles.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* Plugin Name: Instant Articles for WP
1111
* Description: Add support for Instant Articles for Facebook to your WordPress site.
1212
* Author: Automattic, Dekode, Facebook
13-
* Version: 5.0.1
13+
* Version: 5.0.2
1414
* Text Domain: instant-articles
1515
* License: GPL-2.0-or-later
1616
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -21,7 +21,7 @@
2121

2222
defined( 'ABSPATH' ) || die();
2323

24-
const IA_PLUGIN_VERSION = '5.0.1';
24+
const IA_PLUGIN_VERSION = '5.0.2';
2525
const IA_PLUGIN_FILE = __FILE__;
2626
const IA_PLUGIN_FORCE_SUBMIT_KEY = 'instant_articles_force_submit';
2727

readme.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Tags: instant-articles, fb, mobile, instant articles
44
Requires at least: 4.7
55
Requires PHP: 7.1
66
Tested up to: 6.0.3
7-
Stable tag: 5.0.1
7+
Stable tag: 5.0.2
88
License: GPLv2 or later
99
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1010

@@ -93,6 +93,10 @@ Usually simply visiting the permalinks settings page in the WordPress dashboard
9393
1. Customized transformer rules enabled on the main Settings page. The particular configuration shown here would cause `<u>` and `<bold>` tags in the source markup to be rendered in *italics* and **bold**, respectively, in the generated Instant Article.
9494

9595
== Changelog ==
96+
### 5.0.2 - 2022-10-29
97+
98+
- Fix: Make `Instant_Articles_Post::$instant_article` property public.
99+
96100
### 5.0.1 - 2022-10-18
97101

98102
- Refresh dependency that handles fixing of transformer encodings.

0 commit comments

Comments
 (0)