diff --git a/projects/packages/jetpack-mu-wpcom/changelog/remove-sharing-modal-controller b/projects/packages/jetpack-mu-wpcom/changelog/remove-sharing-modal-controller new file mode 100644 index 0000000000000..f20db40014e20 --- /dev/null +++ b/projects/packages/jetpack-mu-wpcom/changelog/remove-sharing-modal-controller @@ -0,0 +1,4 @@ +Significance: minor +Type: removed + +Removed import of the class-wp-rest-wpcom-block-editor-sharing-modal-controller.php controller diff --git a/projects/packages/jetpack-mu-wpcom/src/features/wpcom-block-editor-nux/class-wpcom-block-editor-nux.php b/projects/packages/jetpack-mu-wpcom/src/features/wpcom-block-editor-nux/class-wpcom-block-editor-nux.php index 6b544e2e679ec..38f4933b09c7f 100644 --- a/projects/packages/jetpack-mu-wpcom/src/features/wpcom-block-editor-nux/class-wpcom-block-editor-nux.php +++ b/projects/packages/jetpack-mu-wpcom/src/features/wpcom-block-editor-nux/class-wpcom-block-editor-nux.php @@ -64,22 +64,6 @@ public function enqueue_script_and_style() { "var launchpadOptions = $launchpad_options;", 'before' ); - - /** - * Enqueue the sharing modal options. - */ - $sharing_modal_options = wp_json_encode( - array( - 'isDismissed' => WP_REST_WPCOM_Block_Editor_Sharing_Modal_Controller::get_wpcom_sharing_modal_dismissed(), - ), - JSON_HEX_TAG | JSON_HEX_AMP - ); - - wp_add_inline_script( - $handle, - "var sharingModalOptions = $sharing_modal_options;", - 'before' - ); } /** @@ -101,10 +85,6 @@ public function register_rest_api() { require_once __DIR__ . '/class-wp-rest-wpcom-block-editor-video-celebration-modal-controller.php'; $video_celebration_modal_controller = new WP_REST_WPCOM_Block_Editor_Video_Celebration_Modal_Controller(); $video_celebration_modal_controller->register_rest_route(); - - require_once __DIR__ . '/class-wp-rest-wpcom-block-editor-sharing-modal-controller.php'; - $sharing_modal_controller = new WP_REST_WPCOM_Block_Editor_Sharing_Modal_Controller(); - $sharing_modal_controller->register_rest_route(); } } add_action( 'init', array( __NAMESPACE__ . '\WPCOM_Block_Editor_NUX', 'init' ) );