Error when no options is selected
-
Hello!
I love this plugin, use it on every site now ??
But i got the following error:Warning: in_array() expects parameter 2 to be array, string given in /Users/robert/sites/wp-site/wordpress/wp-content/plugins/acf-medium-editor-field/fields/acf-medium-editor-v5.php on line 725
This happens when none of the checkboxes are checked under the settings “Other Medium Editor Options”.
I would propose to replace line 725 in fields/acf-medium-editor-v5.php with:
if (is_array($field['other_options']) && in_array('disableReturn', $field['other_options'])) {
.
What do you think?Note that i’m running WP with WP_DEBUG = true.
Best regards, Robert Sather.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Error when no options is selected’ is closed to new replies.