Make WordPress Core

Changeset 22107


Ignore:
Timestamp:
10/03/2012 08:54:54 PM (12 years ago)
Author:
nacin
Message:

Add no-customize-support to the body classes when the toolbar is showing. Allows for 'Customize' to be hidden when JS is disabled. props obenland, DrewAPicture. fixes #20896.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post-template.php

    r21848 r22107  
    501501        $classes[] = 'logged-in';
    502502
    503     if ( is_admin_bar_showing() )
     503    if ( is_admin_bar_showing() ) {
    504504        $classes[] = 'admin-bar';
     505        $classes[] = 'no-customize-support';
     506    }
    505507
    506508    if ( get_theme_mod( 'background_color' ) || get_background_image() )
Note: See TracChangeset for help on using the changeset viewer.