[wp-trac] [WordPress Trac] #30387: Theme customizer section vanishes if code is inside is_admin() block
WordPress Trac
noreply at wordpress.org
Tue Nov 18 17:40:17 UTC 2014
#30387: Theme customizer section vanishes if code is inside is_admin() block
----------------------------+-----------------------------
Reporter: Latz | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Customize | Version: trunk
Severity: normal | Keywords:
Focuses: administration |
----------------------------+-----------------------------
Theme customizer: If I surround the add_section() and add_setting()
functions with an is_admin() condition, the new section is not displayed.
If I remove the is_admin() condition, everything works fine.
WordPress 4.0 didn't show this behaviour.
I've added s screencast and an example plugin to illustrate the problem.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30387>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list