Ticket #37344: 37344-2.patch
| File 37344-2.patch, 1.0 KB (added by , 8 years ago) |
|---|
-
src/wp-includes/class-walker-nav-menu.php
116 116 * @param int $id Current item ID. 117 117 */ 118 118 public function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) { 119 $args = (array) $args; // cast to array prevents object-by-reference side effects 119 120 if ( isset( $args->item_spacing ) && 'discard' === $args->item_spacing ) { 120 121 $t = ''; 121 122 $n = ''; … … 137 138 * @param WP_Post $item Menu item data object. 138 139 * @param int $depth Depth of menu item. Used for padding. 139 140 */ 140 $args = apply_filters( 'nav_menu_item_args', $args, $item, $depth );141 $args = apply_filters( 'nav_menu_item_args', (object) $args, $item, $depth ); 141 142 142 143 /** 143 144 * Filters the CSS classes applied to a menu item's list item element.