From 927714032a220efe47baefcb2bba9907dd2f766a Mon Sep 17 00:00:00 2001 From: Sean Fisher Date: Wed, 20 Mar 2024 10:59:06 -0400 Subject: [PATCH 1/2] Switch apple_news_metadata back to string --- admin/class-admin-apple-news.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/class-admin-apple-news.php b/admin/class-admin-apple-news.php index e8aaefc3..852067f7 100644 --- a/admin/class-admin-apple-news.php +++ b/admin/class-admin-apple-news.php @@ -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' => '', From 33ddff4c73ca194fa9340baa1a02d6e9e283536f Mon Sep 17 00:00:00 2001 From: Sean Fisher Date: Wed, 20 Mar 2024 11:02:57 -0400 Subject: [PATCH 2/2] CHANGELOG and bumping to 2.4.8 --- apple-news.php | 2 +- includes/class-apple-news.php | 2 +- package-lock.json | 4 ++-- package.json | 2 +- readme.txt | 6 +++++- 5 files changed, 10 insertions(+), 6 deletions(-) diff --git a/apple-news.php b/apple-news.php index b4997c3d..a8a50bd8 100644 --- a/apple-news.php +++ b/apple-news.php @@ -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 diff --git a/includes/class-apple-news.php b/includes/class-apple-news.php index c83b77bf..6f2d6492 100644 --- a/includes/class-apple-news.php +++ b/includes/class-apple-news.php @@ -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. diff --git a/package-lock.json b/package-lock.json index 085511fb..289d7ea3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "publish-to-apple-news", - "version": "2.4.7", + "version": "2.4.8", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "publish-to-apple-news", - "version": "2.4.7", + "version": "2.4.8", "hasInstallScript": true, "license": "GPLv3", "dependencies": { diff --git a/package.json b/package.json index e63c7e05..5c2b49e6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "publish-to-apple-news", - "version": "2.4.7", + "version": "2.4.8", "license": "GPLv3", "main": "index.php", "engines": { diff --git a/readme.txt b/readme.txt index 4ab052bc..62ba7ba4 100644 --- a/readme.txt +++ b/readme.txt @@ -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 @@ -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.