Ticket #37344: 37344.patch
| File 37344.patch, 952 bytes (added by , 10 years ago) |
|---|
-
class-walker-nav-menu.php
85 85 * @param int $id Current item ID. 86 86 */ 87 87 public function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) { 88 $args = (array) $args; // cast to array prevents object-by-reference side effects 88 89 $indent = ( $depth ) ? str_repeat( "\t", $depth ) : ''; 89 90 90 91 $classes = empty( $item->classes ) ? array() : (array) $item->classes; … … 99 100 * @param object $item Menu item data object. 100 101 * @param int $depth Depth of menu item. Used for padding. 101 102 */ 102 $args = apply_filters( 'nav_menu_item_args', $args, $item, $depth );103 $args = apply_filters( 'nav_menu_item_args', (object) $args, $item, $depth ); 103 104 104 105 /** 105 106 * Filters the CSS class(es) applied to a menu item's list item element.