WordPress.org

Make WordPress Core

Ticket #20896: 20896.2.diff

File 20896.2.diff, 1.0 KB (added by kobenland, 6 years ago)

In JS: just replace the class don't add it, since it's already there.

  • wp-includes/theme.php

     
    16721672                        request = true;
    16731673<?php           endif; ?>
    16741674
    1675                         b[c] = b[c].replace( rcs, '' );
    1676                         b[c] += ( window.postMessage && request ? ' ' : ' no-' ) + cs;
     1675                        if ( window.postMessage && request )
     1676                                b[c] = b[c].replace( rcs, ' ' + cs + ' ' );
    16771677                }());
    16781678        </script>
    16791679        <?php
  • wp-includes/post-template.php

     
    498498        if ( is_user_logged_in() )
    499499                $classes[] = 'logged-in';
    500500
    501         if ( is_admin_bar_showing() )
     501        if ( is_admin_bar_showing() ) {
    502502                $classes[] = 'admin-bar';
    503 
     503                $classes[] = 'no-customize-support';
     504        }
     505       
    504506        if ( get_background_color() || get_theme_mod( 'background_image' ) || get_theme_support( 'custom-background', 'default-image' ) )
    505507                $classes[] = 'custom-background';
    506508