Changeset 24377
- Timestamp:
- 05/28/2013 03:29:15 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 6 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 -
trunk/wp-admin/includes/template.php
r24187 r24377 35 35 } 36 36 37 function start_el( &$output, $category, $depth , $args, $id = 0 ) {37 function start_el( &$output, $category, $depth = 0, $args = array(), $id = 0 ) { 38 38 extract($args); 39 39 if ( empty($taxonomy) ) -
trunk/wp-includes/category-template.php
r23888 r24377 934 934 * @param array $args Uses 'selected' and 'show_count' keys, if they exist. 935 935 */ 936 function start_el( &$output, $category, $depth , $args, $id = 0 ) {936 function start_el( &$output, $category, $depth = 0, $args = array(), $id = 0 ) { 937 937 $pad = str_repeat(' ', $depth * 3); 938 938 -
trunk/wp-includes/class-wp-walker.php
r24126 r24377 81 81 * @param string $output Passed by reference. Used to append additional content. 82 82 */ 83 function start_el( &$output, $object, $depth , $args, $current_object_id = 0 ) {}83 function start_el( &$output, $object, $depth = 0, $args = array(), $current_object_id = 0 ) {} 84 84 85 85 /** -
trunk/wp-includes/comment-template.php
r24337 r24377 1326 1326 * @param array $args 1327 1327 */ 1328 function start_el( &$output, $comment, $depth , $args, $id = 0 ) {1328 function start_el( &$output, $comment, $depth = 0, $args = array(), $id = 0 ) { 1329 1329 $depth++; 1330 1330 $GLOBALS['comment_depth'] = $depth; -
trunk/wp-includes/post-template.php
r24336 r24377 1054 1054 * @param array $args 1055 1055 */ 1056 function start_el( &$output, $page, $depth , $args, $current_page = 0 ) {1056 function start_el( &$output, $page, $depth = 0, $args = array(), $current_page = 0 ) { 1057 1057 if ( $depth ) 1058 1058 $indent = str_repeat("\t", $depth); … … 1136 1136 * @param int $id 1137 1137 */ 1138 function start_el( &$output, $page, $depth, $args, $id = 0) {1138 function start_el( &$output, $page, $depth = 0, $args = array(), $id = 0 ) { 1139 1139 $pad = str_repeat(' ', $depth * 3); 1140 1140
Note: See TracChangeset
for help on using the changeset viewer.