Make WordPress Core


Ignore:
Timestamp:
11/08/2021 03:26:32 PM (4 years ago)
Author:
desrosj
Message:

Themes: Remove temporary Full Site Editing safety checks.

These checks were added in [51193] and [51197] as a temporary measure to prevent a site owner from activating a Full Site Editing theme when Gutenberg plugin was not active.

Because Core only had partial support for the features required for FSE, the front end of the site would display a white screen or error message to visitors. Unless the site owner visited the front end, there would be no indication that there was a problem.

Since 5.9 will include the remaining features required for FSE, these checks can be removed.

Props poena, jffng.
Fixes #54366. See #534190.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/customize.php

    r51716 r52044  
    189189            $compatible_wp  = is_wp_version_compatible( $wp_customize->theme()->get( 'RequiresWP' ) );
    190190            $compatible_php = is_php_version_compatible( $wp_customize->theme()->get( 'RequiresPHP' ) );
    191             $fse_safe       = true;
    192 
    193             // Check if the theme requires the Gutenberg plugin to work correctly.
    194             $theme_tags = $wp_customize->theme()->get( 'Tags' );
    195 
    196             if ( ! empty( $theme_tags ) && in_array( 'full-site-editing', $theme_tags, true ) && ! function_exists( 'gutenberg_is_fse_theme' ) ) {
    197                 $fse_safe = false;
    198             }
    199191            ?>
    200             <?php if ( $compatible_wp && $compatible_php && $fse_safe ) : ?>
     192            <?php if ( $compatible_wp && $compatible_php ) : ?>
    201193                <?php $save_text = $wp_customize->is_theme_active() ? __( 'Publish' ) : __( 'Activate &amp; Publish' ); ?>
    202194                <div id="customize-save-button-wrapper" class="customize-save-button-wrapper" >
Note: See TracChangeset for help on using the changeset viewer.