mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-14 11:31:48 +01:00
Block Editor: Add extra body classes when the block editor is loaded.
See #45037. Built from https://develop.svn.wordpress.org/branches/5.0@43780 git-svn-id: http://core.svn.wordpress.org/branches/5.0@43609 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6800a811b6
commit
433dfae509
@ -175,6 +175,15 @@ if ( is_network_admin() )
|
|||||||
|
|
||||||
$admin_body_class .= ' no-customize-support no-svg';
|
$admin_body_class .= ' no-customize-support no-svg';
|
||||||
|
|
||||||
|
if ( $current_screen->is_block_editor() ) {
|
||||||
|
// Default to is-fullscreen-mode to avoid jumps in the UI.
|
||||||
|
$admin_body_class .= ' block-editor-page is-fullscreen-mode wp-embed-responsive';
|
||||||
|
|
||||||
|
if ( current_theme_supports( 'editor-styles' ) && current_theme_supports( 'dark-editor-style' ) ) {
|
||||||
|
$admin_body_class .= ' is-dark-theme';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
</head>
|
</head>
|
||||||
<?php
|
<?php
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.0-alpha-43779';
|
$wp_version = '5.0-alpha-43780';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user