Skip to content

Commit d8e49ee

Browse files
Admin: get_admin_page_parent call before parent_file filter. Fixes #61503.
1 parent e12ddb3 commit d8e49ee

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/wp-admin/menu-header.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
*/
3232
global $menu, $submenu, $parent_file, $submenu_file;
3333

34+
get_admin_page_parent();
35+
3436
/**
3537
* Filters the parent file of an admin menu sub-menu item.
3638
*
@@ -52,8 +54,6 @@
5254
*/
5355
$submenu_file = apply_filters( 'submenu_file', $submenu_file, $parent_file );
5456

55-
get_admin_page_parent();
56-
5757
/**
5858
* Display menu.
5959
*

0 commit comments

Comments
 (0)