Skip to content

Commit 64d29c4

Browse files
refactor: install otter block plugin
1 parent 86dd47a commit 64d29c4

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

assets/js/scripts-admin.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -617,16 +617,7 @@ jQuery( function( $ ) {
617617

618618
if ( otterBlockCheckbox.length && otterBlockCheckbox.is( ':checked' ) ) {
619619
promiseChain = promiseChain
620-
.then(() => handleOtter())
621-
.then(() => {
622-
if ( ! wpmmVars.isOtterInstalled ) {
623-
return installPlugin( 'otter-blocks' ).then( () => activatePlugin( 'otter-blocks' ) );
624-
}
625-
626-
if ( ! wpmmVars.isOtterActive ) {
627-
return activatePlugin( 'otter-blocks' );
628-
}
629-
});
620+
.then(() => handleOtter());
630621
}
631622

632623
return promiseChain.catch( ( error ) => {

0 commit comments

Comments
 (0)