Skip to content

Instantly share code, notes, and snippets.

@apfelbox
Created January 21, 2014 11:41
Show Gist options
  • Save apfelbox/8538568 to your computer and use it in GitHub Desktop.
Save apfelbox/8538568 to your computer and use it in GitHub Desktop.
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
@SimonMayerhofer
Copy link

thanks, it works fine :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment