Advertisement
Guest User

Untitled

a guest
May 17th, 2013
506
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.13 KB | None | 0 0
  1. diff --git app/wp-admin/includes/nav-menu.php app/wp-admin/includes/nav-menu.php
  2. index 6064462..280cc29 100644
  3. --- app/wp-admin/includes/nav-menu.php
  4. +++ app/wp-admin/includes/nav-menu.php
  5. @@ -14,7 +14,7 @@ class Walker_Nav_Menu_Edit extends Walker_Nav_Menu {
  6. *
  7. * @param string $output Passed by reference.
  8. */
  9. - function start_lvl(&$output) {}
  10. + function start_lvl(&$output, $depth = 0, $args = array()) {}
  11.  
  12. /**
  13. * @see Walker_Nav_Menu::end_lvl()
  14. @@ -22,7 +22,7 @@ class Walker_Nav_Menu_Edit extends Walker_Nav_Menu {
  15. *
  16. * @param string $output Passed by reference.
  17. */
  18. - function end_lvl(&$output) {
  19. + function end_lvl(&$output, $depth = 0, $args = array()) {
  20. }
  21.  
  22. /**
  23. @@ -34,7 +34,7 @@ class Walker_Nav_Menu_Edit extends Walker_Nav_Menu {
  24. * @param int $depth Depth of menu item. Used for padding.
  25. * @param object $args
  26. */
  27. - function start_el(&$output, $item, $depth, $args) {
  28. + function start_el(&$output, $item, $depth = 0, $args = array(), $id = 0) {
  29. global $_wp_nav_menu_max_depth;
  30. $_wp_nav_menu_max_depth = $depth > $_wp_nav_menu_max_depth ? $depth : $_wp_nav_menu_max_depth;
  31.  
  32. @@ -216,12 +216,12 @@ class Walker_Nav_Menu_Checklist extends Walker_Nav_Menu {
  33. }
  34. }
  35.  
  36. - function start_lvl( &$output, $depth ) {
  37. + function start_lvl( &$output, $depth = 0, $args = array() ) {
  38. $indent = str_repeat( "\t", $depth );
  39. $output .= "\n$indent<ul class='children'>\n";
  40. }
  41.  
  42. - function end_lvl( &$output, $depth ) {
  43. + function end_lvl( &$output, $depth = 0, $args = array() ) {
  44. $indent = str_repeat( "\t", $depth );
  45. $output .= "\n$indent</ul>";
  46. }
  47. @@ -235,7 +235,7 @@ class Walker_Nav_Menu_Checklist extends Walker_Nav_Menu {
  48. * @param int $depth Depth of menu item. Used for padding.
  49. * @param object $args
  50. */
  51. - function start_el(&$output, $item, $depth, $args) {
  52. + function start_el(&$output, $item, $depth = 0, $args = array(), $current_object_id = 0) {
  53. global $_nav_menu_placeholder;
  54.  
  55. $_nav_menu_placeholder = ( 0 > $_nav_menu_placeholder ) ? intval($_nav_menu_placeholder) - 1 : -1;
  56. diff --git app/wp-admin/includes/template.php app/wp-admin/includes/template.php
  57. index 788a4bd..1c630a0 100644
  58. --- app/wp-admin/includes/template.php
  59. +++ app/wp-admin/includes/template.php
  60. @@ -34,7 +34,7 @@ class Walker_Category_Checklist extends Walker {
  61. $output .= "$indent</ul>\n";
  62. }
  63.  
  64. - function start_el( &$output, $category, $depth, $args, $id = 0 ) {
  65. + function start_el( &$output, $category, $depth = 0, $args = array(), $id = 0 ) {
  66. extract($args);
  67. if ( empty($taxonomy) )
  68. $taxonomy = 'category';
  69. diff --git app/wp-includes/class-wp-walker.php app/wp-includes/class-wp-walker.php
  70. index df9d9b6..91b926f 100644
  71. --- app/wp-includes/class-wp-walker.php
  72. +++ app/wp-includes/class-wp-walker.php
  73. @@ -80,7 +80,7 @@ class Walker {
  74. *
  75. * @param string $output Passed by reference. Used to append additional content.
  76. */
  77. - function start_el( &$output, $object, $depth, $args, $current_object_id = 0 ) {}
  78. + function start_el( &$output, $object, $depth = 0, $args = array(), $current_object_id = 0 ) {}
  79.  
  80. /**
  81. * Ends the element output, if needed.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement