Make WordPress Core

Changeset 24377


Ignore:
Timestamp:
05/28/2013 03:29:15 AM (13 years ago)
Author:
SergeyBiryukov
Message:

Fix E_STRICT notices in walkers. props dvarga. see #24356.

Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/nav-menu.php

    r24356 r24377  
    1515         * @param string $output Passed by reference.
    1616         */
    17         function start_lvl(&$output) {}
     17        function start_lvl( &$output, $depth = 0, $args = array() ) {}
    1818
    1919        /**
     
    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        /**
     
    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;
     
    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>";
     
    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
  • trunk/wp-admin/includes/template.php

    r24187 r24377  
    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) )
  • trunk/wp-includes/category-template.php

    r23888 r24377  
    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
  • trunk/wp-includes/class-wp-walker.php

    r24126 r24377  
    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        /**
  • trunk/wp-includes/comment-template.php

    r24337 r24377  
    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;
  • trunk/wp-includes/post-template.php

    r24336 r24377  
    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);
     
    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
Note: See TracChangeset for help on using the changeset viewer.