Make WordPress Core


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

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

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.