mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 04:40:26 +00:00
Fix E_STRICT notices in walkers. props dvarga. see #24356.
git-svn-id: https://develop.svn.wordpress.org/trunk@24377 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1053,7 +1053,7 @@ class Walker_Page extends Walker {
|
||||
* @param int $current_page Page ID.
|
||||
* @param array $args
|
||||
*/
|
||||
function start_el( &$output, $page, $depth, $args, $current_page = 0 ) {
|
||||
function start_el( &$output, $page, $depth = 0, $args = array(), $current_page = 0 ) {
|
||||
if ( $depth )
|
||||
$indent = str_repeat("\t", $depth);
|
||||
else
|
||||
@@ -1135,7 +1135,7 @@ class Walker_PageDropdown extends Walker {
|
||||
* @param array $args Uses 'selected' argument for selected page to set selected HTML attribute for option element.
|
||||
* @param int $id
|
||||
*/
|
||||
function start_el(&$output, $page, $depth, $args, $id = 0) {
|
||||
function start_el( &$output, $page, $depth = 0, $args = array(), $id = 0 ) {
|
||||
$pad = str_repeat(' ', $depth * 3);
|
||||
|
||||
$output .= "\t<option class=\"level-$depth\" value=\"$page->ID\"";
|
||||
|
||||
Reference in New Issue
Block a user