[wp-trac] [WordPress Trac] #37653: customizer sections with 'active_callback' set to 'is_front_page' don't show when "Front page displays" "a static page"

WordPress Trac noreply at wordpress.org
Sat Aug 13 23:18:02 UTC 2016


#37653: customizer sections with 'active_callback' set to 'is_front_page' don't
show when "Front page displays" "a static page"
-----------------------------------------+------------------
 Reporter:  Guss77                       |       Owner:
     Type:  defect (bug)                 |      Status:  new
 Priority:  normal                       |   Milestone:  4.7
Component:  Themes                       |     Version:  3.4
 Severity:  normal                       |  Resolution:
 Keywords:  has-patch reporter-feedback  |     Focuses:
-----------------------------------------+------------------
Changes (by westonruter):

 * keywords:   => has-patch reporter-feedback
 * version:  4.5.1 => 3.4
 * milestone:  Awaiting Review => 4.7


Comment:

 @Guss77 thanks for the report. I could specifically reproduce the issue
 when I first switch from “Your latest posts” to “A static page” while the
 “Front page” and “Posts page” are both empty (see [attachment:static-
 front-page-without-selections.png]). This scenario isn't possible when
 setting these options on the Reading admin page. This intermediate state
 is possible, however, in the Customizer. The easiest fix is to replace
 `'is_front_page'` as the `active_callback` with `function() { return
 is_front_page() || is_home(); }`.

 [attachment:37653.2.diff] seems to be a better fix for this special
 condition for `is_front_page()`.

 Can you confirm this is the scenario you're experiencing?

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


More information about the wp-trac mailing list