diff --git a/src/editor-sidebar/save-panel.js b/src/editor-sidebar/save-panel.js index 9b67c1d4..8266f91e 100644 --- a/src/editor-sidebar/save-panel.js +++ b/src/editor-sidebar/save-panel.js @@ -73,8 +73,9 @@ export const SaveThemePanel = () => { const searchParams = new URLSearchParams( window?.location?.search ); - // If user is editing a pattern, redirect back to the patterns page. + // If user is editing a pattern and savePatterns is true, redirect back to the patterns page. if ( + preference.savePatterns && searchParams.get( 'postType' ) === 'wp_block' && searchParams.get( 'postId' ) ) {