From 692f79087f3270da0c3b2a9444e861e4b4130304 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 7 Feb 2015 17:56:18 +0000 Subject: [PATCH] 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 --- src/wp-admin/menu-header.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/menu-header.php b/src/wp-admin/menu-header.php index c599fd1be8..8aa81fe3e5 100644 --- a/src/wp-admin/menu-header.php +++ b/src/wp-admin/menu-header.php @@ -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]];