Skip to content

Commit

Permalink
Fix page editor default styles for block themes in simple sites
Browse files Browse the repository at this point in the history
  • Loading branch information
miksansegundo committed May 16, 2024
1 parent 7e06005 commit 0610095
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ public function get_registered_categories() {
* Custom styles are safe because they are overwritten by local block styles, global styles, or theme stylesheets.
**/
public function add_default_editor_styles_for_classic_themes( $editor_settings, $editor_context ) {
$theme = wp_get_theme( normalize_theme_slug( get_stylesheet() ) );
$theme = wp_get_theme( get_stylesheet() );
if ( $theme->is_block_theme() ) {
// Only for classic themes
return $editor_settings;
Expand Down

0 comments on commit 0610095

Please sign in to comment.