From 55e050bee34c1c5c6248135818b7b6607e220650 Mon Sep 17 00:00:00 2001 From: Mikael Korpela Date: Mon, 23 Dec 2024 15:25:45 +0200 Subject: [PATCH] Posts APIs: always return internal '_jetpack_dont_email_post_to_subs' meta (#40723) --- .../plugins/jetpack/changelog/update-metadata-api-dont-email | 4 ++++ projects/plugins/jetpack/sal/class.json-api-metadata.php | 1 + 2 files changed, 5 insertions(+) create mode 100644 projects/plugins/jetpack/changelog/update-metadata-api-dont-email diff --git a/projects/plugins/jetpack/changelog/update-metadata-api-dont-email b/projects/plugins/jetpack/changelog/update-metadata-api-dont-email new file mode 100644 index 0000000000000..60d5efa266bca --- /dev/null +++ b/projects/plugins/jetpack/changelog/update-metadata-api-dont-email @@ -0,0 +1,4 @@ +Significance: minor +Type: other + +Metadata: always return internal '_jetpack_dont_email_post_to_subs' meta diff --git a/projects/plugins/jetpack/sal/class.json-api-metadata.php b/projects/plugins/jetpack/sal/class.json-api-metadata.php index 801859a4263d3..2622d6b6b0ecd 100644 --- a/projects/plugins/jetpack/sal/class.json-api-metadata.php +++ b/projects/plugins/jetpack/sal/class.json-api-metadata.php @@ -59,6 +59,7 @@ public static function is_internal_only( $key ) { $whitelist = array( '_jetpack_newsletter_access', '_jetpack_newsletter_tier_id', + '_jetpack_dont_email_post_to_subs', ); if ( in_array( $key, $whitelist, true ) ) {