Make WordPress Core

Ticket #24356: 24356.patch

File 24356.patch, 4.9 KB (added by SergeyBiryukov, 10 years ago)
  • wp-admin/includes/nav-menu.php

     
    1414         *
    1515         * @param string $output Passed by reference.
    1616         */
    17         function start_lvl(&$output) {}
     17        function start_lvl( &$output, $depth = 0, $args = array() ) {}
    1818
    1919        /**
    2020         * @see Walker_Nav_Menu::end_lvl()
     
    2222         *
    2323         * @param string $output Passed by reference.
    2424         */
    25         function end_lvl(&$output) {
    26         }
     25        function end_lvl( &$output, $depth = 0, $args = array() ) {}
    2726
    2827        /**
    2928         * @see Walker::start_el()
     
    3433         * @param int $depth Depth of menu item. Used for padding.
    3534         * @param object $args
    3635         */
    37         function start_el(&$output, $item, $depth, $args) {
     36        function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) {
    3837                global $_wp_nav_menu_max_depth;
    3938                $_wp_nav_menu_max_depth = $depth > $_wp_nav_menu_max_depth ? $depth : $_wp_nav_menu_max_depth;
    4039
     
    231230                }
    232231        }
    233232
    234         function start_lvl( &$output, $depth ) {
     233        function start_lvl( &$output, $depth = 0, $args = array() ) {
    235234                $indent = str_repeat( "\t", $depth );
    236235                $output .= "\n$indent<ul class='children'>\n";
    237236        }
    238237
    239         function end_lvl( &$output, $depth ) {
     238        function end_lvl( &$output, $depth = 0, $args = array() ) {
    240239                $indent = str_repeat( "\t", $depth );
    241240                $output .= "\n$indent</ul>";
    242241        }
     
    250249         * @param int $depth Depth of menu item. Used for padding.
    251250         * @param object $args
    252251         */
    253         function start_el(&$output, $item, $depth, $args) {
     252        function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) {
    254253                global $_nav_menu_placeholder;
    255254
    256255                $_nav_menu_placeholder = ( 0 > $_nav_menu_placeholder ) ? intval($_nav_menu_placeholder) - 1 : -1;
  • wp-admin/includes/template.php

     
    3434                $output .= "$indent</ul>\n";
    3535        }
    3636
    37         function start_el( &$output, $category, $depth, $args, $id = 0 ) {
     37        function start_el( &$output, $category, $depth = 0, $args = array(), $id = 0 ) {
    3838                extract($args);
    3939                if ( empty($taxonomy) )
    4040                        $taxonomy = 'category';
  • wp-includes/category-template.php

     
    933933         * @param int $depth Depth of category. Used for padding.
    934934         * @param array $args Uses 'selected' and 'show_count' keys, if they exist.
    935935         */
    936         function start_el( &$output, $category, $depth, $args, $id = 0 ) {
     936        function start_el( &$output, $category, $depth = 0, $args = array(), $id = 0 ) {
    937937                $pad = str_repeat('&nbsp;', $depth * 3);
    938938
    939939                $cat_name = apply_filters('list_cats', $category->name, $category);
  • wp-includes/class-wp-walker.php

     
    8080         *
    8181         * @param string $output Passed by reference. Used to append additional content.
    8282         */
    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 )  {}
    8484
    8585        /**
    8686         * Ends the element output, if needed.
  • wp-includes/comment-template.php

     
    13251325         * @param int $depth Depth of comment in reference to parents.
    13261326         * @param array $args
    13271327         */
    1328         function start_el( &$output, $comment, $depth, $args, $id = 0 ) {
     1328        function start_el( &$output, $comment, $depth = 0, $args = array(), $id = 0 ) {
    13291329                $depth++;
    13301330                $GLOBALS['comment_depth'] = $depth;
    13311331                $GLOBALS['comment'] = $comment;
  • wp-includes/post-template.php

     
    10531053         * @param int $current_page Page ID.
    10541054         * @param array $args
    10551055         */
    1056         function start_el( &$output, $page, $depth, $args, $current_page = 0 ) {
     1056        function start_el( &$output, $page, $depth = 0, $args = array(), $current_page = 0 ) {
    10571057                if ( $depth )
    10581058                        $indent = str_repeat("\t", $depth);
    10591059                else
     
    11351135         * @param array $args Uses 'selected' argument for selected page to set selected HTML attribute for option element.
    11361136         * @param int $id
    11371137         */
    1138         function start_el(&$output, $page, $depth, $args, $id = 0) {
     1138        function start_el( &$output, $page, $depth = 0, $args = array(), $id = 0 ) {
    11391139                $pad = str_repeat('&nbsp;', $depth * 3);
    11401140
    11411141                $output .= "\t<option class=\"level-$depth\" value=\"$page->ID\"";