Ticket #23902: nav-menu-template.php.patch
File nav-menu-template.php.patch, 746 bytes (added by , 10 years ago) |
---|
-
src/wp-includes/nav-menu-template.php
95 95 * @param object $item The current menu item. 96 96 * @param array $args An array of wp_nav_menu() arguments. 97 97 */ 98 $class_names = join( ' ', apply_filters( 'nav_menu_css_class', array_filter( $classes ), $item, $args ) ); 98 $classes = apply_filters( 'nav_menu_css_class', array_filter( $classes ), $item, $args ); 99 $item->classes = $classes; 100 101 $class_names = join( ' ', $classes ); 99 102 $class_names = $class_names ? ' class="' . esc_attr( $class_names ) . '"' : ''; 100 103 101 104 /**