[wp-trac] [WordPress Trac] #35687: Customizer active_callback

WordPress Trac noreply at wordpress.org
Mon Feb 1 09:23:18 UTC 2016

#35687: Customizer active_callback
 Reporter:  coderste      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Customize     |    Version:  4.4.1
 Severity:  normal        |   Keywords:
  Focuses:                |
 So when I made a Theme for WordPress 4.4.0 I made a custom section within
 the WordPress customizer. Inside the customizer I had a section called
 'Feature Products' which could only been seen when the user was on the
 'front-page' using the customizer. To achieve this I used the {{{
 'active_callback' => 'is_front_page' }}} when adding a new section.

 Now here is where the problem lies - when using WordPress Version 4.4.0 it
 worked perfectly but then WordPress released WordPress Version 4.4.1 and
 then it just broke. For some unknown reason the {{{ 'active_callback' =>
 'is_front_page' }}} was just hiding the 'Feature Products' inside the
 customizer. Now when I remove the 'active_callback' code it works fine but
 shows on every page (obviously) which is wanted.

 I don't know whether this is a bug or something else but it was working
 previous to WordPress 4.4.1

Ticket URL: <https://core.trac.wordpress.org/ticket/35687>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list