Redirect to Jetpack connect page on plugins page skip (#39109)

* Redirect users to Jetpack Auth when the users deselect all plugins, but Jetpack is already installed

* Add changelog
This commit is contained in:
Moon 2023-08-01 01:07:10 +09:00 committed by GitHub
parent c810960bff
commit 46d83e3861
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 3 deletions

View File

@ -1174,9 +1174,13 @@ export const coreProfilerStateMachineDefinition = createMachine( {
} );
return promiseDelay( 3000 );
},
onDone: {
actions: [ 'redirectToWooHome' ],
},
onDone: [
{
target: 'isJetpackConnected',
cond: 'hasJetpackSelected',
},
{ actions: [ 'redirectToWooHome' ] },
],
},
meta: {
component: Loader,

View File

@ -0,0 +1,4 @@
Significance: minor
Type: tweak
When all plugins are deselected, but Jetpack is already installed and not connected, redirect users to the Jetpack Connect page.