From 0c5705098a900f089d15bd160f185aa636dd6867 Mon Sep 17 00:00:00 2001 From: Gergely Juhasz Date: Thu, 8 Aug 2024 13:20:01 +0200 Subject: [PATCH 1/2] Move logic inside the social logic --- projects/plugins/jetpack/class.jetpack-gutenberg.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/plugins/jetpack/class.jetpack-gutenberg.php b/projects/plugins/jetpack/class.jetpack-gutenberg.php index d5b58052bbe8b..496778d9c229f 100644 --- a/projects/plugins/jetpack/class.jetpack-gutenberg.php +++ b/projects/plugins/jetpack/class.jetpack-gutenberg.php @@ -771,9 +771,9 @@ public static function enqueue_block_editor_assets() { $initial_state['social']['connectionRefreshPath'] = $social_initial_state['connectionRefreshPath']; } - } - $initial_state['social']['featureFlags'] = $social_initial_state['featureFlags']; + $initial_state['social']['featureFlags'] = $social_initial_state['featureFlags']; + } wp_localize_script( 'jetpack-blocks-editor', From 384711a7b730b7a6be16bf0b8087b51d3c185fb7 Mon Sep 17 00:00:00 2001 From: Gergely Juhasz Date: Thu, 8 Aug 2024 13:20:43 +0200 Subject: [PATCH 2/2] changelog --- .../changelog/fix-social-initial-state-undefined-variable | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 projects/plugins/jetpack/changelog/fix-social-initial-state-undefined-variable diff --git a/projects/plugins/jetpack/changelog/fix-social-initial-state-undefined-variable b/projects/plugins/jetpack/changelog/fix-social-initial-state-undefined-variable new file mode 100644 index 0000000000000..ae5c3c76949ba --- /dev/null +++ b/projects/plugins/jetpack/changelog/fix-social-initial-state-undefined-variable @@ -0,0 +1,4 @@ +Significance: patch +Type: other + +Fixed a warning with undefined variables