mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-24 15:24:36 +00:00
Theme Customizer: Remove !important declarations from hide-if-customize and hide-if-no-customize classes. Use a default no-customize-support class on the body so we can use an element's original display property when visible. fixes #20565, see #19910.
git-svn-id: https://develop.svn.wordpress.org/trunk@20759 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -90,6 +90,8 @@ $admin_body_class .= ' locale-' . sanitize_html_class( strtolower( str_replace(
|
||||
if ( wp_is_mobile() )
|
||||
$admin_body_class .= ' mobile';
|
||||
|
||||
$admin_body_class .= ' no-customize-support';
|
||||
|
||||
?>
|
||||
</head>
|
||||
<body class="wp-admin no-js <?php echo apply_filters( 'admin_body_class', '' ) . " $admin_body_class"; ?>">
|
||||
@@ -100,7 +102,7 @@ if ( wp_is_mobile() )
|
||||
// This prevents a flash of unstyled content.
|
||||
if ( wp_script_is( 'customize-loader', 'queue' ) ) : ?>
|
||||
if ( window.postMessage )
|
||||
document.body.className += ' customize-support';
|
||||
document.body.className += document.body.className.replace('no-customize-support','customize-support');
|
||||
<?php endif; ?>
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user