WordPress.org

Make WordPress Core

Changes between Initial Version and Version 4 of Ticket #39430


Ignore:
Timestamp:
01/21/2017 11:57:14 PM (4 years ago)
Author:
westonruter
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #39430

    • Property Keywords has-screenshots added
    • Property Version changed from 4.1 to 4.7
    • Property Milestone changed from Future Release to 4.7.2
  • Ticket #39430 – Description

    initial v4  
    11If you have a section open with an active callback that's true, then navigate to a page where it isn't active, the section remains open. Since it's no longer intended to be available, it should be collapsed as soon as it becomes inactive if it's currently expanded.
     2
     3----
     4
     5If 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.
     6
     7I believe this is a regression introduced in #34391, as I'm sure that the panels would collapse automatically when de-activated in the past.
     8
     9Video depicting the problem: https://youtu.be/h1kaRLn7A8g
     10Plugin that reproduces the problem as used in the video: https://gist.github.com/westonruter/4a4c378c750cb5432ecaf88f5d9ba539