mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
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:
@@ -60,7 +60,7 @@ function _wp_menu_output( $menu, $submenu, $submenu_as_parent = true ) {
|
||||
$first = false;
|
||||
}
|
||||
|
||||
$submenu_items = false;
|
||||
$submenu_items = array();
|
||||
if ( ! empty( $submenu[$item[2]] ) ) {
|
||||
$class[] = 'wp-has-submenu';
|
||||
$submenu_items = $submenu[$item[2]];
|
||||
|
||||
Reference in New Issue
Block a user