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 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',