Declare the $submenu_file
global to avoid a notice generated by passing it as a parameter to the submenu_file
hook, introduced in [34722].
Fixes #24531. git-svn-id: https://develop.svn.wordpress.org/trunk@34724 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
11144bd39e
commit
72e5ad9390
@ -23,7 +23,7 @@ $self = preg_replace('|^.*/mu-plugins/|i', '', $self);
|
||||
* @global array $submenu
|
||||
* @global string $parent_file
|
||||
*/
|
||||
global $menu, $submenu, $parent_file;
|
||||
global $menu, $submenu, $parent_file, $submenu_file;
|
||||
|
||||
/**
|
||||
* Filter the parent file of an admin menu sub-menu item.
|
||||
|
Loading…
Reference in New Issue
Block a user