[wp-trac] [WordPress Trac] #30387: Theme customizer section vanishes if code is inside is_admin() block

WordPress Trac noreply at wordpress.org
Tue Nov 25 10:47:13 UTC 2014


#30387: Theme customizer section vanishes if code is inside is_admin() block
--------------------------+-----------------------------
 Reporter:  Latz          |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Customize     |     Version:  trunk
 Severity:  normal        |  Resolution:  wontfix
 Keywords:  close         |     Focuses:  administration
--------------------------+-----------------------------
Changes (by westonruter):

 * status:  new => closed
 * resolution:   => wontfix
 * milestone:  Awaiting Review =>


Comment:

 I've updated the Codex with the note:
 http://codex.wordpress.org/Theme_Customization_API#Developing_for_the_Theme_Customizer

 It's a best practice already to not wrap Customizer logic in `is_admin()`.

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


More information about the wp-trac mailing list