In _wp_menu_output()
, $submenu_items
is an array and should be initialized as such.
props ipm-frommen. fixes #31257. git-svn-id: https://develop.svn.wordpress.org/trunk@31364 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
8aac5ba74e
commit
692f79087f
@ -60,7 +60,7 @@ function _wp_menu_output( $menu, $submenu, $submenu_as_parent = true ) {
|
|||||||
$first = false;
|
$first = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
$submenu_items = false;
|
$submenu_items = array();
|
||||||
if ( ! empty( $submenu[$item[2]] ) ) {
|
if ( ! empty( $submenu[$item[2]] ) ) {
|
||||||
$class[] = 'wp-has-submenu';
|
$class[] = 'wp-has-submenu';
|
||||||
$submenu_items = $submenu[$item[2]];
|
$submenu_items = $submenu[$item[2]];
|
||||||
|
Loading…
Reference in New Issue
Block a user