Skip to content

Commit

Permalink
Don't enable sidebar UI in classic theme (#705)
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano authored Aug 17, 2024
1 parent c54073f commit 681a5c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-create-block-theme-editor-tools.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function __construct() {
function create_block_theme_sidebar_enqueue() {
global $pagenow;

if ( 'site-editor.php' !== $pagenow ) {
if ( 'site-editor.php' !== $pagenow || ! wp_is_block_theme() ) {
return;
}

Expand Down

0 comments on commit 681a5c2

Please sign in to comment.