Make WordPress Core

Opened 5 years ago

Closed 4 years ago

#35687 closed defect (bug) (maybelater)

Customizer active_callback

Reported by: coderste Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.4.1
Component: Customize Keywords: reporter-feedback
Focuses: Cc:


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

Change History (4)

#1 @coderste
5 years ago

  • Focuses accessibility added

#2 @swissspidy
5 years ago

  • Focuses accessibility removed

#3 @ocean90
5 years ago

  • Keywords reporter-feedback added

Hello @coderste, welcome to Trac!

Thanks for your report. Can you reproduce the issue with the latest nightly version too?

#4 @westonruter
4 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to maybelater
  • Status changed from new to closed

Closing due to inactivity. May be duplicated by #37653.

Note: See TracTickets for help on using tickets.