--- a/wp/wp-admin/admin-header.php Fri Sep 05 18:40:08 2025 +0200
+++ b/wp/wp-admin/admin-header.php Fri Sep 05 18:52:52 2025 +0200
@@ -6,6 +6,11 @@
* @subpackage Administration
*/
+// Don't load directly.
+if ( ! defined( 'ABSPATH' ) ) {
+ die( '-1' );
+}
+
header( 'Content-Type: ' . get_option( 'html_type' ) . '; charset=' . get_option( 'blog_charset' ) );
if ( ! defined( 'WP_ADMIN' ) ) {
require_once __DIR__ . '/admin.php';
@@ -203,12 +208,17 @@
$admin_body_class .= ' network-admin';
}
-$admin_body_class .= ' no-customize-support no-svg';
+$admin_body_class .= ' no-customize-support svg';
if ( $current_screen->is_block_editor() ) {
$admin_body_class .= ' block-editor-page wp-embed-responsive';
}
+$admin_body_class .= ' wp-theme-' . sanitize_html_class( get_template() );
+if ( is_child_theme() ) {
+ $admin_body_class .= ' wp-child-theme-' . sanitize_html_class( get_stylesheet() );
+}
+
$error_get_last = error_get_last();
// Print a CSS class to make PHP errors visible.