Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#39663 closed defect (bug) (duplicate)

Customize: Sections and panels fail to collapse when non-contextual (inactive)

Reported by: westonruter Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.7
Component: Customize Keywords: needs-patch
Focuses: Cc:

Description (last modified by westonruter)

If a panel or section has an active_callback set, and if the panel or section is expanded, when a user navigates from previewing a URL where the active_callback returns true to one where it returns false, these the non-contextual panel or section remain expanded unexpectedly. If you collapse the panel or section to go to the root you then see that the references to the panel/section are hidden.

I believe this is a regression introduced in #34391, as I'm sure that the panels would collapse automatically when de-activated in the past.

Video depicting the problem: https://youtu.be/h1kaRLn7A8g
Plugin that reproduces the problem as used in the video: https://gist.github.com/westonruter/4a4c378c750cb5432ecaf88f5d9ba539

Change History (3)

#1 @westonruter
4 years ago

  • Description modified (diff)

#2 @westonruter
4 years ago

@delawski Is something you can troubleshoot?

#3 @celloexpressions
4 years ago

  • Milestone 4.7.2 deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Duplicate of #39430.

Note: See TracTickets for help on using tickets.