Revert [30032] so appropriate PHP warnings aren't masked.

Fixes #28743


git-svn-id: https://develop.svn.wordpress.org/trunk@30592 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn 2014-11-28 01:28:28 +00:00
parent 8d578a1d1f
commit 93eb8d6d45

View File

@ -95,7 +95,7 @@ class Walker_Nav_Menu extends Walker {
* @param array $args An array of {@see wp_nav_menu()} arguments.
* @param int $depth Depth of menu item. Used for padding.
*/
$class_names = join( ' ', (array) apply_filters( 'nav_menu_css_class', array_filter( $classes ), $item, $args, $depth ) );
$class_names = join( ' ', apply_filters( 'nav_menu_css_class', array_filter( $classes ), $item, $args, $depth ) );
$class_names = $class_names ? ' class="' . esc_attr( $class_names ) . '"' : '';
/**