Skip to content

Commit

Permalink
Whitelist jetpack_memberships_site_subscriber post meta (#31956)
Browse files Browse the repository at this point in the history
* Whitelist jetpack_memberships_site_subscriber

* changelog

* Move magic string to constants file

* Register site_subscriber meta in get_plan_property_mapping
  • Loading branch information
romarioraffington authored Jul 20, 2023
1 parent 45fe783 commit ae09922
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: bugfix

Whitelist jetpack_memberships_site_subscriber post meta to allow for syncing to WordPress.com
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,15 @@ public static function get_instance() {
private static function get_plan_property_mapping() {
$meta_prefix = 'jetpack_memberships_';
$properties = array(
'price' => array(
'price' => array(
'meta' => $meta_prefix . 'price',
),
'currency' => array(
'currency' => array(
'meta' => $meta_prefix . 'currency',
),
'site_subscriber' => array(
'meta' => $meta_prefix . 'site_subscriber',
),
);
return $properties;
}
Expand Down

0 comments on commit ae09922

Please sign in to comment.