Skip to content

Commit 92b9f96

Browse files
authored
Merge pull request #15 from teachmeter/master
Replace strlen with mb_strlen to account for utf8 thanks
2 parents 237978b + 33130d0 commit 92b9f96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

acf-input-counter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function render_field($field) {
7878
// only run on text and text area fields when maxlength is set
7979
return;
8080
}
81-
$len = strlen($field['value']);
81+
$len = mb_strlen($field['value']);
8282
$max = $field['maxlength'];
8383

8484
$classes = apply_filters('acf-input-counter/classes', array());

0 commit comments

Comments
 (0)