Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter applied to clone fields #564

Open
seripap opened this issue Nov 4, 2021 · 0 comments
Open

Filter applied to clone fields #564

seripap opened this issue Nov 4, 2021 · 0 comments

Comments

@seripap
Copy link

seripap commented Nov 4, 2021

When a clone flexible content field is used, the format_value function is called causing an issue due to $value being an array versus a string.

php_1    | NOTICE: PHP message: PHP Fatal error:  Uncaught TypeError: strpos(): Argument #1 ($haystack) must be of type string, array given in /var/www/html/wp-includes/shortcodes.php:209
php_1    | Stack trace:
php_1    | #0 /var/www/html/wp-includes/shortcodes.php(209): strpos(Array, '[')
php_1    | #1 /var/www/html/wp-includes/class-wp-embed.php(71): do_shortcode(Array, true)
php_1    | #2 /var/www/html/wp-includes/class-wp-hook.php(303): WP_Embed->run_shortcode(Array)
php_1    | #3 /var/www/html/wp-includes/plugin.php(189): WP_Hook->apply_filters(Array, Array)
php_1    | #4 /var/www/html/wp-content/plugins/advanced-custom-fields-pro/includes/fields/class-acf-field-wysiwyg.php(433): apply_filters('acf_the_content', Array)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant