Created
January 21, 2014 11:41
-
-
Save apfelbox/8538568 to your computer and use it in GitHub Desktop.
Fix for strict warnings in http://wordpress.org/plugins/cms-page-order/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git cms-page-order.php cms-page-order.php | |
index 51d2b9e333c3cc83c75842fbbcf7e8ab65b41e06..ddfabb28bd6dfec09067eb36f8b8a028a4678e62 100644 | |
--- cms-page-order.php | |
+++ cms-page-order.php | |
@@ -350,15 +350,15 @@ function cmspo_do_err() { | |
/** Special Walker for the Pages */ | |
class PO_Walker extends Walker_Page { | |
- function start_lvl(&$output, $depth) { | |
+ function start_lvl(&$output, $depth = 0, $args = array() ) { | |
$indent = str_repeat("\t", $depth); | |
$output .= "\n$indent<ol class=\"cmspo-children\">\n"; | |
} | |
- function end_lvl(&$output, $depth) { | |
+ function end_lvl(&$output, $depth = 0, $args = array()) { | |
$indent = str_repeat("\t", $depth); | |
$output .= "$indent</ol>\n"; | |
} | |
- function start_el(&$output, $page, $depth, $args) { | |
+ function start_el(&$output, $page, $depth = 0, $args = array(), $current_page = 0) { | |
if ( $depth ) | |
$indent = str_repeat("\t", $depth); | |
else |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks, it works fine :)