Changeset 24377 for trunk/wp-admin/includes/nav-menu.php
- Timestamp:
- 05/28/2013 03:29:15 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/nav-menu.php
r24356 r24377 15 15 * @param string $output Passed by reference. 16 16 */ 17 function start_lvl( &$output) {}17 function start_lvl( &$output, $depth = 0, $args = array() ) {} 18 18 19 19 /** … … 23 23 * @param string $output Passed by reference. 24 24 */ 25 function end_lvl(&$output) { 26 } 25 function end_lvl( &$output, $depth = 0, $args = array() ) {} 27 26 28 27 /** … … 35 34 * @param object $args 36 35 */ 37 function start_el( &$output, $item, $depth, $args) {36 function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) { 38 37 global $_wp_nav_menu_max_depth; 39 38 $_wp_nav_menu_max_depth = $depth > $_wp_nav_menu_max_depth ? $depth : $_wp_nav_menu_max_depth; … … 232 231 } 233 232 234 function start_lvl( &$output, $depth ) {233 function start_lvl( &$output, $depth = 0, $args = array() ) { 235 234 $indent = str_repeat( "\t", $depth ); 236 235 $output .= "\n$indent<ul class='children'>\n"; 237 236 } 238 237 239 function end_lvl( &$output, $depth ) {238 function end_lvl( &$output, $depth = 0, $args = array() ) { 240 239 $indent = str_repeat( "\t", $depth ); 241 240 $output .= "\n$indent</ul>"; … … 251 250 * @param object $args 252 251 */ 253 function start_el( &$output, $item, $depth, $args) {252 function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) { 254 253 global $_nav_menu_placeholder; 255 254
Note: See TracChangeset
for help on using the changeset viewer.