mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-22 00:01:27 +01:00
Cast class names to an array to avoid a potential warning.
props briandichiara fixes #29743 Built from https://develop.svn.wordpress.org/trunk@30032 git-svn-id: http://core.svn.wordpress.org/trunk@30032 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
61115c51f7
commit
11471d6415
@ -95,7 +95,7 @@ class Walker_Nav_Menu extends Walker {
|
||||
* @param object $item The current menu item.
|
||||
* @param array $args An array of wp_nav_menu() arguments.
|
||||
*/
|
||||
$class_names = join( ' ', apply_filters( 'nav_menu_css_class', array_filter( $classes ), $item, $args ) );
|
||||
$class_names = join( ' ', (array) apply_filters( 'nav_menu_css_class', array_filter( $classes ), $item, $args ) );
|
||||
$class_names = $class_names ? ' class="' . esc_attr( $class_names ) . '"' : '';
|
||||
|
||||
/**
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.1-alpha-30031';
|
||||
$wp_version = '4.1-alpha-30032';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user