Changes between Version 2 and Version 3 of Ticket #22022, comment 1
- 01/05/13 07:01:03 (14 months ago)
v2 v3 1 1 Providing a simpler explanation and a patch in hopes that something happens with this issue : 2 2 3 '''Simpler explanation''' : in menu-header.php, the 'parent_file' filter runs before the get_admin_page_parent() function, but the get_admin_page_parent() function can change $parent_file, overriding the filter and rendering inineffective. So the filter needs to run after that function. 3 '''Simpler explanation''' : in menu-header.php, the 'parent_file' filter ineffective. So the filter needs to run after that function. 4 4 5 5 '''Patch''' : All this does is swap the filter and function lines. The only way this would break existing code is if someone was relying on the internal behavior of get_admin_page_parent() to override the value they set in their filter function - which is not very likely.