Ticket #27326: 27326.diff
File 27326.diff, 753 bytes (added by , 10 years ago) |
---|
-
src/wp-includes/class-wp-walker.php
246 246 foreach ( $children_elements as $orphans ) 247 247 foreach( $orphans as $op ) 248 248 $this->display_element( $op, $empty_array, 1, 0, $args, $output ); 249 } 249 }elseif ( count( $children_elements ) > 0 ) { 250 foreach ( explode( ',', $args[0]['exclude'] ) as $orphans ) { 251 if( isset( $children_elements[ $orphans ] ) ) { 252 foreach( $children_elements[ $orphans ] as $op ) { 253 $this->display_element( $op, $empty_array, 1, 0, $args, $output ); 254 } 255 } 256 } 257 } 250 258 251 259 return $output; 252 260 }