We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92b9f96 commit 9851562Copy full SHA for 9851562
acf-input-counter.php
@@ -78,7 +78,11 @@ public function render_field($field) {
78
// only run on text and text area fields when maxlength is set
79
return;
80
}
81
- $len = mb_strlen($field['value']);
+ if (function_exists('mb_strlen')) {
82
+ $len = mb_strlen($field['value']);
83
+ } else {
84
+ $len = strlen($field['value']);
85
+ }
86
$max = $field['maxlength'];
87
88
$classes = apply_filters('acf-input-counter/classes', array());
@@ -181,4 +185,4 @@ function show_blunt_plugins_list_meta_box() {
181
185
182
186
} // end if !function_exists
183
187
184
-?>
188
+?>
0 commit comments