[wp-trac] [WordPress Trac] #20896: Theme Customizer: Add "no-customize-support" class to the body tag by default

WordPress Trac wp-trac at lists.automattic.com
Sun Jun 10 12:30:25 UTC 2012


#20896: Theme Customizer: Add "no-customize-support" class to the body tag by
default
------------------------------------+------------------------------
 Reporter:  kobenland               |       Owner:
     Type:  enhancement             |      Status:  new
 Priority:  normal                  |   Milestone:  Awaiting Review
Component:  Appearance              |     Version:  3.4
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |
------------------------------------+------------------------------

Comment (by kobenland):

 Replying to [comment:2 scribu]:
 > First of all, why? What does this patch fix?

 In [20918] functionality was introduced to hide the 'Customize' link, when
 the customizer is not supported.

 By adding 'no-customize-support' to the default body classes (when the
 admin bar is showing), we can be sure it is there and don't have to rely
 on Themes' best practice, we'd
 [http://core.trac.wordpress.org/browser/trunk/wp-admin/admin-
 header.php#L93 streamline behavior with the admin, where the class is also
 added by default] and can shave off a bit from the JS.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20896#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list