WordPress.org

Make WordPress Core

Changeset 30032


Ignore:
Timestamp:
10/26/2014 11:18:03 PM (6 years ago)
Author:
markjaquith
Message:

Cast class names to an array to avoid a potential warning.

props briandichiara
fixes #29743

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/nav-menu-template.php

    r29792 r30032  
    9696         * @param array  $args    An array of wp_nav_menu() arguments.
    9797         */
    98         $class_names = join( ' ', apply_filters( 'nav_menu_css_class', array_filter( $classes ), $item, $args ) );
     98        $class_names = join( ' ', (array) apply_filters( 'nav_menu_css_class', array_filter( $classes ), $item, $args ) );
    9999        $class_names = $class_names ? ' class="' . esc_attr( $class_names ) . '"' : '';
    100100
Note: See TracChangeset for help on using the changeset viewer.