[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
Sat Mar 2 18:16:54 UTC 2013


#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
Component:  Appearance                           |  Review
 Severity:  normal                               |     Version:
 Keywords:  2nd-opinion has-patch needs-testing  |  Resolution:
-------------------------------------------------+-------------------------
Changes (by sammybeats):

 * cc: sammybeats (added)
 * keywords:  2nd-opinion => 2nd-opinion has-patch needs-testing


Comment:

 Submitted a patch that creates a function is_customizer() that checks to
 make sure $wp_customize is of type WP_Customize_Manager and returns the
 value of $wp_customize->is_preview();

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


More information about the wp-trac mailing list