mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-09 15:14:37 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@52044 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -188,16 +188,8 @@ do_action( 'customize_controls_head' );
|
||||
<?php
|
||||
$compatible_wp = is_wp_version_compatible( $wp_customize->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;
|
||||
}
|
||||
?>
|
||||
<?php if ( $compatible_wp && $compatible_php && $fse_safe ) : ?>
|
||||
<?php if ( $compatible_wp && $compatible_php ) : ?>
|
||||
<?php $save_text = $wp_customize->is_theme_active() ? __( 'Publish' ) : __( 'Activate & Publish' ); ?>
|
||||
<div id="customize-save-button-wrapper" class="customize-save-button-wrapper" >
|
||||
<?php submit_button( $save_text, 'primary save', 'save', false ); ?>
|
||||
|
||||
Reference in New Issue
Block a user