[wp-trac] [WordPress Trac] #23509: Conditional function that lets you know if your site is being viewed through the Customizer

WordPress Trac noreply at wordpress.org
Mon May 5 19:59:29 UTC 2014


#23509: Conditional function that lets you know if your site is being viewed
through the Customizer
-----------------------------------------+------------------------------
 Reporter:  nathanrice                   |       Owner:
     Type:  enhancement                  |      Status:  new
 Priority:  normal                       |   Milestone:  Awaiting Review
Component:  Appearance                   |     Version:
 Severity:  normal                       |  Resolution:
 Keywords:  has-patch reporter-feedback  |     Focuses:  template
-----------------------------------------+------------------------------

Comment (by mattwiebe):

 Here's some use cases from WP.com:

 * Custom Fonts in the Customizer - we use a Typekit kit on a non-
 Customizer view, but all font rendering happens via a preview script in
 the Customizer. We use `is_customizer()` to decide which should be
 enqueued.
 * Stylesheet concatenation - turn off in the Customizer for Custom CSS
 users so that we can identify the specific stylesheet and remove it when
 the user edits their stylesheet.
 * don't load stats scripts in the customizer

 There's a few more that aren't as easy to explain.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/23509#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list