Skip to content

Commit

Permalink
Themes: Remove experimental feature notice (WordPress#36083)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka authored Oct 29, 2021
1 parent 56b95cd commit f7ef4f3
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions lib/full-site-editing/full-site-editing.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,6 @@ function gutenberg_supports_block_templates() {
return gutenberg_is_fse_theme() || current_theme_supports( 'block-templates' );
}

/**
* Show a notice when a Full Site Editing theme is used.
*/
function gutenberg_full_site_editing_notice() {
if ( ! gutenberg_is_fse_theme() || 'themes' !== get_current_screen()->base ) {
return;
}
?>
<div class="notice notice-warning">
<p><?php _e( 'You\'re using an experimental Full Site Editing theme. Full Site Editing is an experimental feature and potential API changes are to be expected!', 'gutenberg' ); ?></p>
</div>
<?php
}
add_action( 'admin_notices', 'gutenberg_full_site_editing_notice' );

/**
* Removes legacy pages from FSE themes.
*/
Expand Down

0 comments on commit f7ef4f3

Please sign in to comment.