diff -r 34716fd837a4 -r be944660c56a wp/wp-admin/customize.php --- a/wp/wp-admin/customize.php Tue Dec 15 15:52:01 2020 +0100 +++ b/wp/wp-admin/customize.php Wed Sep 21 18:19:35 2022 +0200 @@ -144,6 +144,10 @@ } $body_class .= ' locale-' . sanitize_html_class( strtolower( str_replace( '_', '-', get_user_locale() ) ) ); +if ( wp_use_widgets_block_editor() ) { + $body_class .= ' wp-embed-responsive'; +} + $admin_title = sprintf( $wp_customize->get_document_title_template(), __( 'Loading…' ) ); ?> @@ -184,8 +188,16 @@ theme()->get( 'RequiresWP' ) ); $compatible_php = is_php_version_compatible( $wp_customize->theme()->get( 'RequiresPHP' ) ); + $fse_safe = true; + + // Check if the theme requires the Gutenberg plugin to work correctly. + $theme_tags = $wp_customize->theme()->get( 'Tags' ); + + if ( ! empty( $theme_tags ) && in_array( 'full-site-editing', $theme_tags, true ) && ! function_exists( 'gutenberg_is_fse_theme' ) ) { + $fse_safe = false; + } ?> - + is_theme_active() ? __( 'Publish' ) : __( 'Activate & Publish' ); ?>
@@ -242,7 +254,7 @@