Make WordPress Core


Ignore:
Timestamp:
01/04/2012 11:03:46 PM (15 years ago)
Author:
ryan
Message:

Clear strict notices for the walkers. fixes #19249

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post-template.php

    r19677 r19679  
    995995         * @param int $depth Depth of page. Used for padding.
    996996         */
    997         function start_lvl(&$output, $depth) {
     997        function start_lvl( &$output, $depth = 0, $args = array() ) {
    998998                $indent = str_repeat("\t", $depth);
    999999                $output .= "\n$indent<ul class='children'>\n";
     
    10071007         * @param int $depth Depth of page. Used for padding.
    10081008         */
    1009         function end_lvl(&$output, $depth) {
     1009        function end_lvl( &$output, $depth = 0, $args = array() ) {
    10101010                $indent = str_repeat("\t", $depth);
    10111011                $output .= "$indent</ul>\n";
     
    10221022         * @param array $args
    10231023         */
    1024         function start_el(&$output, $page, $depth, $args, $current_page) {
     1024        function start_el( &$output, $page, $depth, $args, $current_page = 0 ) {
    10251025                if ( $depth )
    10261026                        $indent = str_repeat("\t", $depth);
     
    10651065         * @param int $depth Depth of page. Not Used.
    10661066         */
    1067         function end_el(&$output, $page, $depth) {
     1067        function end_el( &$output, $page, $depth = 0, $args = array() ) {
    10681068                $output .= "</li>\n";
    10691069        }
     
    11031103         * @param array $args Uses 'selected' argument for selected page to set selected HTML attribute for option element.
    11041104         */
    1105         function start_el(&$output, $page, $depth, $args) {
     1105        function start_el(&$output, $page, $depth, $args, $id = 0) {
    11061106                $pad = str_repeat('&nbsp;', $depth * 3);
    11071107
Note: See TracChangeset for help on using the changeset viewer.