Skip to content

Commit

Permalink
Remove launchpad-save-modal (#39429)
Browse files Browse the repository at this point in the history
  • Loading branch information
taipeicoder authored Sep 20, 2024
1 parent daf62a2 commit 0a1a6f8
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 392 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: deprecated

Removed launchpad-save-modal.
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
// https://github.com/Automattic/wp-calypso/pull/73565#discussion_r1113839120
const useSiteIntent = () => {
// We can skip the request altogether since this information is already added to the window in
// https://github.com/Automattic/jetpack/blob/e135711f9a130946dae1bca6c9c0967350331067/projects/plugins/jetpack/extensions/plugins/launchpad-save-modal/launchpad-save-modal.php#LL31C8-L31C34
// https://github.com/Automattic/jetpack/blob/trunk/projects/packages/jetpack-mu-wpcom/src/features/wpcom-block-editor-nux/class-wpcom-block-editor-nux.php.
// We could update this to use the launchpad endpoint in jetpack-mu-wpcom, but that may require
// permissions changes as it requires 'manage_options' to read
// https://github.com/Automattic/jetpack/blob/e135711f9a130946dae1bca6c9c0967350331067/projects/packages/jetpack-mu-wpcom/src/features/wpcom-endpoints/class-wpcom-rest-api-v2-endpoint-launchpad.php#L121.
return {
siteIntent: window.Jetpack_LaunchpadSaveModal?.siteIntentOption,
siteIntent: window.launchpadOptions?.siteIntentOption,
siteIntentFetched: true,
};
};
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: other

Removed launchpad-save-modal.
1 change: 0 additions & 1 deletion projects/plugins/jetpack/extensions/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@
],
"beta": [
"google-docs-embed",
"launchpad-save-modal",
"recipe",
"v6-video-frame-poster",
"videopress/video-chapters",
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 0a1a6f8

Please sign in to comment.