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:
Sergey Biryukov 2015-02-07 17:56:18 +00:00
parent 8aac5ba74e
commit 692f79087f

View File

@ -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]];