Changeset 51193 for trunk/src/wp-admin/customize.php
- Timestamp:
- 06/22/2021 02:58:07 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/customize.php
r50931 r51193 185 185 $compatible_wp = is_wp_version_compatible( $wp_customize->theme()->get( 'RequiresWP' ) ); 186 186 $compatible_php = is_php_version_compatible( $wp_customize->theme()->get( 'RequiresPHP' ) ); 187 $fse_safe = true; 188 189 // Check if the theme requires the FSE to work correctly. 190 $theme_tags = $wp_customize->theme()->get( 'Tags' ); 191 192 if ( ! empty( $theme_tags ) && in_array( 'full-site-editing', $theme_tags, true ) && ! is_plugin_active( 'gutenberg/gutenberg.php' ) ) { 193 $fse_safe = false; 194 } 187 195 ?> 188 <?php if ( $compatible_wp && $compatible_php ) : ?>196 <?php if ( $compatible_wp && $compatible_php && $fse_safe ) : ?> 189 197 <?php $save_text = $wp_customize->is_theme_active() ? __( 'Publish' ) : __( 'Activate & Publish' ); ?> 190 198 <div id="customize-save-button-wrapper" class="customize-save-button-wrapper" >
Note: See TracChangeset
for help on using the changeset viewer.