
cam@bowhouse.co.uk(@cam-bowhouse-co-uk)
1 Post
Customers
Quote from cam@bowhouse.co.uk on February 3, 2023, 16:23
Hi there,
One of my client's sites was having an issue with some CSS being echoed to the screen above the search widget. I did some digging and it seems that in a recent update the before_widget argument in the widget method of the WOOF_Widget class is now being escaped through the wp_kses_post function, and this is leading to a conflict with the Avada theme/builder which is trying to insert a <style> tag at the beginning of the before_widget argument that it's being stripped back to plain text and then echoed to the frontend.
I can see that in version 1.2.6.3 of the plugin on line 29 the code didn't have the escaping:
echo $args['before_widget'];
And then in version 1.3.2 which appears to be the most recent, this line has changed to:
echo wp_kses_post(wp_unslash($args['before_widget']));
Is it possible to get this reverted back in a future release? I understand the reason for escaping this argument, however, it breaks compatibility with a popular page builder and possibly other plugins as well, so it would be great if there was a workaround for this.
Thanks,
Cam
Hi there,
One of my client's sites was having an issue with some CSS being echoed to the screen above the search widget. I did some digging and it seems that in a recent update the before_widget argument in the widget method of the WOOF_Widget class is now being escaped through the wp_kses_post function, and this is leading to a conflict with the Avada theme/builder which is trying to insert a <style> tag at the beginning of the before_widget argument that it's being stripped back to plain text and then echoed to the frontend.
I can see that in version 1.2.6.3 of the plugin on line 29 the code didn't have the escaping:
echo $args['before_widget'];
And then in version 1.3.2 which appears to be the most recent, this line has changed to:
echo wp_kses_post(wp_unslash($args['before_widget']));
Is it possible to get this reverted back in a future release? I understand the reason for escaping this argument, however, it breaks compatibility with a popular page builder and possibly other plugins as well, so it would be great if there was a workaround for this.
Thanks,
Cam

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on February 6, 2023, 14:19
Hello
Unfortunately, it's not possible to get this code back.
The only solution is plugin customization.
Hello
Unfortunately, it's not possible to get this code back.
The only solution is plugin customization.