Ticket #24356: 24356.patch
File 24356.patch, 4.9 KB (added by , 10 years ago) |
---|
-
wp-admin/includes/nav-menu.php
14 14 * 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 /** 20 20 * @see Walker_Nav_Menu::end_lvl() … … 22 22 * 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 /** 29 28 * @see Walker::start_el() … … 34 33 * @param int $depth Depth of menu item. Used for padding. 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; 40 39 … … 231 230 } 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>"; 242 241 } … … 250 249 * @param int $depth Depth of menu item. Used for padding. 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 256 255 $_nav_menu_placeholder = ( 0 > $_nav_menu_placeholder ) ? intval($_nav_menu_placeholder) - 1 : -1; -
wp-admin/includes/template.php
34 34 $output .= "$indent</ul>\n"; 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) ) 40 40 $taxonomy = 'category'; -
wp-includes/category-template.php
933 933 * @param int $depth Depth of category. Used for padding. 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 939 939 $cat_name = apply_filters('list_cats', $category->name, $category); -
wp-includes/class-wp-walker.php
80 80 * 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 /** 86 86 * Ends the element output, if needed. -
wp-includes/comment-template.php
1325 1325 * @param int $depth Depth of comment in reference to parents. 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; 1331 1331 $GLOBALS['comment'] = $comment; -
wp-includes/post-template.php
1053 1053 * @param int $current_page Page ID. 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); 1059 1059 else … … 1135 1135 * @param array $args Uses 'selected' argument for selected page to set selected HTML attribute for option element. 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 1141 1141 $output .= "\t<option class=\"level-$depth\" value=\"$page->ID\"";