Skip to content

Commit 277ef42

Browse files
committed
removed class check added by 6af54a0 fixes issue #6
1 parent d4699f1 commit 277ef42

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

acf-input-counter.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ public function scripts() {
5252
} // end public function scripts
5353

5454
public function render_field($field) {
55+
//echo '<pre>'; print_r($field); echo '</pre>';
5556
if (!$this->run() ||
5657
!$field['maxlength'] ||
5758
($field['type'] != 'text' && $field['type'] != 'textarea')) {
@@ -60,15 +61,12 @@ public function render_field($field) {
6061
}
6162
$len = strlen($field['value']);
6263
$max = $field['maxlength'];
63-
64-
if ( $field['wrapper']['class'] == 'acf_counter' ) {
6564
?>
6665
<span class="char-count">
6766
<?php echo __('Characters', 'dvp'); ?>: <span class="count"><?php echo $len; ?></span>
6867
<?php echo __('of', 'dvp'); ?> <?php echo $max; ?>
6968
</span>
7069
<?php
71-
}
7270
} // end public function render_field
7371

7472
} // end class acf_input_counter

0 commit comments

Comments
 (0)