WordPress.org

Make WordPress Core


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

Clear strict notices for the walkers. fixes #19249

File:
1 edited

Legend:

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

    r19657 r19679  
    3838     * @param int $depth Depth of page. Used for padding.
    3939     */
    40     function start_lvl(&$output, $depth) {
     40    function start_lvl( &$output, $depth = 0, $args = array() ) {
    4141        $indent = str_repeat("\t", $depth);
    4242        $output .= "\n$indent<ul class=\"sub-menu\">\n";
     
    5050     * @param int $depth Depth of page. Used for padding.
    5151     */
    52     function end_lvl(&$output, $depth) {
     52    function end_lvl( &$output, $depth = 0, $args = array() ) {
    5353        $indent = str_repeat("\t", $depth);
    5454        $output .= "$indent</ul>\n";
     
    6565     * @param object $args
    6666     */
    67     function start_el(&$output, $item, $depth, $args) {
     67    function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) {
    6868        global $wp_query;
    6969        $indent = ( $depth ) ? str_repeat( "\t", $depth ) : '';
     
    104104     * @param int $depth Depth of page. Not Used.
    105105     */
    106     function end_el(&$output, $item, $depth) {
     106    function end_el( &$output, $item, $depth = 0, $args = array() ) {
    107107        $output .= "</li>\n";
    108108    }
Note: See TracChangeset for help on using the changeset viewer.