Skip to content

Commit

Permalink
Merge pull request #1089 from alleyinteractive/hotfix/1087-apple-news
Browse files Browse the repository at this point in the history
Switch apple_news_metadata back to string
  • Loading branch information
srtfisher authored Mar 20, 2024
2 parents 08f7b46 + 33ddff4 commit fcf5375
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 8 deletions.
4 changes: 2 additions & 2 deletions admin/class-admin-apple-news.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,14 +141,14 @@ public function __construct() {
'default' => '',
],
'apple_news_metadata' => [
'default' => [],
'default' => '',
'sanitize_callback' => function ( $value ) {
return ! empty( $value ) && is_string( $value ) ? json_decode( $value, true ) : $value;
},
'show_in_rest' => [
'prepare_callback' => 'apple_news_json_encode',
],
'type' => 'array',
'type' => 'string',
],
'apple_news_pullquote' => [
'default' => '',
Expand Down
2 changes: 1 addition & 1 deletion apple-news.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* Plugin Name: Publish to Apple News
* Plugin URI: http://github.com/alleyinteractive/apple-news
* Description: Export and sync posts to Apple format.
* Version: 2.4.7
* Version: 2.4.8
* Author: Alley
* Author URI: https://alley.com
* Text Domain: apple-news
Expand Down
2 changes: 1 addition & 1 deletion includes/class-apple-news.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class Apple_News {
* @var string
* @access public
*/
public static string $version = '2.4.7';
public static string $version = '2.4.8';

/**
* Link to support for the plugin on WordPress.org.
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "publish-to-apple-news",
"version": "2.4.7",
"version": "2.4.8",
"license": "GPLv3",
"main": "index.php",
"engines": {
Expand Down
6 changes: 5 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Tags: publish, apple, news, iOS
Requires at least: 6.3
Tested up to: 6.4.2
Requires PHP: 8.0
Stable tag: 2.4.7
Stable tag: 2.4.8
License: GPLv3 or later
License URI: https://www.gnu.org/licenses/gpl.html

Expand Down Expand Up @@ -46,6 +46,10 @@ Please visit our [wiki](https://github.com/alleyinteractive/apple-news/wiki) for

== Changelog ==

= 2.4.8 =

* Bugfix: #1089 - Resolve notice thrown with registering `apple_news_metadata` meta.

= 2.4.7 =

* Bugfix: #1083 - Resolved issues with the `apple_news_sections` meta throwing a PHP notice.
Expand Down

0 comments on commit fcf5375

Please sign in to comment.