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:
Drew Jaynes 2015-10-01 01:22:55 +00:00
parent 11144bd39e
commit 72e5ad9390

View File

@ -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.