From f240f4786992e5a122156a68dcc0eb5bd7a8603d Mon Sep 17 00:00:00 2001 From: triller Date: Tue, 25 Dec 2018 18:26:20 +0100 Subject: [PATCH] Fix to set option 'before' right --- classes/em-category-taxonomy.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/em-category-taxonomy.php b/classes/em-category-taxonomy.php index 4310041..290c2e8 100755 --- a/classes/em-category-taxonomy.php +++ b/classes/em-category-taxonomy.php @@ -136,7 +136,7 @@ function start_el( &$output, $object, $depth = 0, $args = array(), $current_obje $pad = str_repeat(' ', $depth * 3); $cat_name = $object->name; $name = !empty($args['name']) ? $args['name']:'event_categories[]'; - $output .= !empty($args['before']) ? $args['after']:''; + $output .= !empty($args['before']) ? $args['before']:''; $output .= $pad."term_id."\""; if ( (is_array($args['selected']) && in_array($object->term_id, $args['selected'])) || ($object->term_id == $args['selected']) ) $output .= ' checked="checked"'; @@ -167,4 +167,4 @@ function start_el( &$output, $object, $depth = 0, $args = array(), $current_obje $output .= $pad.$cat_name; $output .= "\n"; } -} \ No newline at end of file +}