From 4ff0e79bc34a1437b80193cb74ab83ef1bd728fb Mon Sep 17 00:00:00 2001 From: tellthemachines Date: Fri, 22 Nov 2024 17:15:07 +1100 Subject: [PATCH] lint PHP --- lib/experimental/stylebook/classic-screen.php | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/lib/experimental/stylebook/classic-screen.php b/lib/experimental/stylebook/classic-screen.php index 6816ce80a25d6b..1410a838cd575a 100644 --- a/lib/experimental/stylebook/classic-screen.php +++ b/lib/experimental/stylebook/classic-screen.php @@ -5,20 +5,20 @@ * @package gutenberg */ - /** - * Add a Styles submenu link for Classic themes. - */ +/** + * Add a Styles submenu link for Classic themes. + */ function gutenberg_add_styles_link() { - if ( ! wp_is_block_theme() ) { - add_theme_page( - __( 'Styles', 'gutenberg' ), - __( 'Styles', 'gutenberg' ), - 'edit_theme_options', - 'gutenberg-stylebook-static', - 'gutenberg_stylebook_render', - 3 - ); - } + if ( ! wp_is_block_theme() ) { + add_theme_page( + __( 'Styles', 'gutenberg' ), + __( 'Styles', 'gutenberg' ), + 'edit_theme_options', + 'gutenberg-stylebook-static', + 'gutenberg_stylebook_render', + 3 + ); + } } add_action( 'admin_menu', 'gutenberg_add_styles_link' ); @@ -37,8 +37,8 @@ static function ( $classes ) { */ function gutenberg_stylebook_render() { - $block_editor_context = new WP_Block_Editor_Context( array( 'name' => 'core/edit-site' ) ); - $custom_settings = array( + $block_editor_context = new WP_Block_Editor_Context( array( 'name' => 'core/edit-site' ) ); + $custom_settings = array( 'siteUrl' => site_url(), 'styles' => get_block_editor_theme_styles(), 'supportsLayout' => wp_theme_has_theme_json(), @@ -57,7 +57,7 @@ function gutenberg_stylebook_render() { ); block_editor_rest_api_preload( $preload_paths, $block_editor_context ); - // Preload server-registered block schemas. + // Preload server-registered block schemas. wp_add_inline_script( 'wp-blocks', 'wp.blocks.unstable__bootstrapServerSideBlockDefinitions(' . wp_json_encode( get_block_editor_server_block_settings() ) . ');' @@ -83,5 +83,5 @@ function gutenberg_stylebook_render() { wp_enqueue_script( 'wp-edit-site' ); wp_enqueue_media(); - echo '
'; + echo '
'; } \ No newline at end of file