if ( $current_screen->
is_block_editor() ) { $admin_body_class .= ' block-editor-page wp-embed-responsive';
}$error_get_last =
error_get_last();
// Print a CSS class to make PHP errors visible.
if ( $error_get_last && WP_DEBUG && WP_DEBUG_DISPLAY &&
ini_get( 'display_errors'
) // Don't print the class for PHP notices in wp-config.php, as they happen before WP_DEBUG takes effect,
// and should not be displayed with the `error_reporting` level previously set in wp-load.php.
&& ( E_NOTICE !==
$error_get_last['type'
] || 'wp-config.php' !==
wp_basename( $error_get_last['file'
] ) )) { $admin_body_class .= ' php-error';
}unset( $error_get_last );
?>
</head>
<?php
/**
* Filters the CSS classes for the body tag in the admin.
*
* This filter differs from the {@see 'post_class'} and {@see 'body_class'} filters
* in two important ways:
*
* 1. `$classes` is a space-separated string of class names instead of an array.
* 2. Not all core admin classes are filterable, notably: wp-admin, wp-core-ui,
* and no-js cannot be removed.
*
* @since 2.3.0
*
* @param string $classes Space-separated list of CSS classes.
*/