Clear strict notices for the walkers. fixes #19249

git-svn-id: https://develop.svn.wordpress.org/trunk@19679 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2012-01-04 23:03:46 +00:00
parent 3e9c3dbed6
commit c855c642ea
7 changed files with 30 additions and 30 deletions
+4 -4
View File
@@ -37,7 +37,7 @@ class Walker_Nav_Menu extends Walker {
* @param string $output Passed by reference. Used to append additional content.
* @param int $depth Depth of page. Used for padding.
*/
function start_lvl(&$output, $depth) {
function start_lvl( &$output, $depth = 0, $args = array() ) {
$indent = str_repeat("\t", $depth);
$output .= "\n$indent<ul class=\"sub-menu\">\n";
}
@@ -49,7 +49,7 @@ class Walker_Nav_Menu extends Walker {
* @param string $output Passed by reference. Used to append additional content.
* @param int $depth Depth of page. Used for padding.
*/
function end_lvl(&$output, $depth) {
function end_lvl( &$output, $depth = 0, $args = array() ) {
$indent = str_repeat("\t", $depth);
$output .= "$indent</ul>\n";
}
@@ -64,7 +64,7 @@ class Walker_Nav_Menu extends Walker {
* @param int $current_page Menu item ID.
* @param object $args
*/
function start_el(&$output, $item, $depth, $args) {
function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) {
global $wp_query;
$indent = ( $depth ) ? str_repeat( "\t", $depth ) : '';
@@ -103,7 +103,7 @@ class Walker_Nav_Menu extends Walker {
* @param object $item Page data object. Not used.
* @param int $depth Depth of page. Not Used.
*/
function end_el(&$output, $item, $depth) {
function end_el( &$output, $item, $depth = 0, $args = array() ) {
$output .= "</li>\n";
}
}