diff --git a/wpas.php b/wpas.php index b1d42b1..95093bc 100644 --- a/wpas.php +++ b/wpas.php @@ -276,6 +276,7 @@ function submit_button( $args ) { */ function tax_field( $args ) { $defaults = array( + 'label' => '', 'taxonomy' => 'category', 'format' => 'select', 'term_format' => 'slug', @@ -346,8 +347,6 @@ function tax_field( $args ) { } } - $args['label'] = $label; - $field = new WPAS_Field('tax_'.$tax_slug, $args); return $field->build_field();