Make WordPress Core


Ignore:
Timestamp:
11/08/2021 03:26:32 PM (5 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-includes/theme.php

    r52034 r52044  
    908908function validate_theme_requirements( $stylesheet ) {
    909909        $theme = wp_get_theme( $stylesheet );
    910 
    911         // If the theme is a Full Site Editing theme, check for the presence of the Gutenberg plugin.
    912         $theme_tags = $theme->get( 'Tags' );
    913 
    914         if ( ! empty( $theme_tags ) && in_array( 'full-site-editing', $theme_tags, true ) && ! function_exists( 'gutenberg_is_fse_theme' ) ) {
    915                 return new WP_Error(
    916                         'theme_requires_gutenberg_plugin',
    917                         sprintf(
    918                                         /* translators: %s: Theme name. */
    919                                 _x( '<strong>Error:</strong> This theme (%s) uses Full Site Editing, which requires the Gutenberg plugin to be activated.', 'theme' ),
    920                                 $theme->display( 'Name' )
    921                         )
    922                 );
    923         }
    924910
    925911        $requirements = array(
Note: See TracChangeset for help on using the changeset viewer.