Last active
August 29, 2015 13:57
-
-
Save dave1010/9685318 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 a/wp-content/plugins/post-expirator/post-expirator.php b/wp-content/plugins/post-expirator/post-expirator.php | |
index d9536ff..2d2dc4c 100644 | |
--- a/wp-content/plugins/post-expirator/post-expirator.php | |
+++ b/wp-content/plugins/post-expirator/post-expirator.php | |
@@ -1264,17 +1264,17 @@ class Walker_PostExpirator_Category_Checklist extends Walker { | |
$this->disabled = 'disabled="disabled"'; | |
} | |
- function start_lvl(&$output, $depth, $args) { | |
+ function start_lvl(&$output, $depth = 0, $args = array()) { | |
$indent = str_repeat("\t", $depth); | |
$output .= "$indent<ul class='children'>\n"; | |
} | |
- function end_lvl(&$output, $depth, $args) { | |
+ function end_lvl(&$output, $depth = 0, $args = array()) { | |
$indent = str_repeat("\t", $depth); | |
$output .= "$indent</ul>\n"; | |
} | |
- function start_el(&$output, $category, $depth, $args) { | |
+ function start_el(&$output, $object, $depth = 0, $args = array(), $current_object_id = 0) { | |
extract($args); | |
if ( empty($taxonomy) ) | |
$taxonomy = 'category'; | |
@@ -1285,7 +1285,7 @@ class Walker_PostExpirator_Category_Checklist extends Walker { | |
$output .= "\n<li id='expirator-{$taxonomy}-{$category->term_id}'$class>" . '<label class="selectit"><input value="' . $category->term_id . '" type="checkbox" name="'.$name.'[]" id="expirator-in-'.$taxonomy.'-' . $category->term_id . '"' . checked( in_array( $category->term_id, $selected_cats ), true, false ) . disabled( empty( $args['disabled'] ), false, false ) . ' '.$this->disabled.'/> ' . esc_html( apply_filters('the_category', $category->name )) . '</label>'; | |
} | |
- function end_el(&$output, $category, $depth, $args) { | |
+ function end_el(&$output, $category, $depth = 0, $args = array()) { | |
$output .= "</li>\n"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment