diff --git app/wp-admin/includes/nav-menu.php app/wp-admin/includes/nav-menu.php
index 6064462..280cc29 100644
|
|
class Walker_Nav_Menu_Edit extends Walker_Nav_Menu { |
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() |
… |
… |
class Walker_Nav_Menu_Edit extends Walker_Nav_Menu { |
22 | 22 | * |
23 | 23 | * @param string $output Passed by reference. |
24 | 24 | */ |
25 | | function end_lvl(&$output) { |
| 25 | function end_lvl(&$output, $depth = 0, $args = array()) { |
26 | 26 | } |
27 | 27 | |
28 | 28 | /** |
… |
… |
class Walker_Nav_Menu_Edit extends Walker_Nav_Menu { |
34 | 34 | * @param int $depth Depth of menu item. Used for padding. |
35 | 35 | * @param object $args |
36 | 36 | */ |
37 | | function start_el(&$output, $item, $depth, $args) { |
| 37 | function start_el(&$output, $item, $depth = 0, $args = array(), $id = 0) { |
38 | 38 | global $_wp_nav_menu_max_depth; |
39 | 39 | $_wp_nav_menu_max_depth = $depth > $_wp_nav_menu_max_depth ? $depth : $_wp_nav_menu_max_depth; |
40 | 40 | |
… |
… |
class Walker_Nav_Menu_Checklist extends Walker_Nav_Menu { |
216 | 216 | } |
217 | 217 | } |
218 | 218 | |
219 | | function start_lvl( &$output, $depth ) { |
| 219 | function start_lvl( &$output, $depth = 0, $args = array() ) { |
220 | 220 | $indent = str_repeat( "\t", $depth ); |
221 | 221 | $output .= "\n$indent<ul class='children'>\n"; |
222 | 222 | } |
223 | 223 | |
224 | | function end_lvl( &$output, $depth ) { |
| 224 | function end_lvl( &$output, $depth = 0, $args = array() ) { |
225 | 225 | $indent = str_repeat( "\t", $depth ); |
226 | 226 | $output .= "\n$indent</ul>"; |
227 | 227 | } |
… |
… |
class Walker_Nav_Menu_Checklist extends Walker_Nav_Menu { |
235 | 235 | * @param int $depth Depth of menu item. Used for padding. |
236 | 236 | * @param object $args |
237 | 237 | */ |
238 | | function start_el(&$output, $item, $depth, $args) { |
| 238 | function start_el(&$output, $item, $depth = 0, $args = array(), $current_object_id = 0) { |
239 | 239 | global $_nav_menu_placeholder; |
240 | 240 | |
241 | 241 | $_nav_menu_placeholder = ( 0 > $_nav_menu_placeholder ) ? intval($_nav_menu_placeholder) - 1 : -1; |
diff --git app/wp-admin/includes/template.php app/wp-admin/includes/template.php
index 788a4bd..1c630a0 100644
|
|
class Walker_Category_Checklist extends Walker { |
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'; |
diff --git app/wp-includes/class-wp-walker.php app/wp-includes/class-wp-walker.php
index df9d9b6..91b926f 100644
|
|
class Walker { |
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. |