Plugin Author
Damian
(@timersys)
How did you remove unfiltered_html ?
Removed with use of the User Role Editor plugin.
Plugin Author
Damian
(@timersys)
Do you feel confortable editing PHP? I could indicate a change int he code to see if fixes the issue.
On src/includes/class-popup-handler.php line 312
Change this:
if ( ! current_user_can( 'unfiltered_html' ) ) {
$data = map_deep( $data, 'wp_strip_all_tags' );
}
To this:
if ( ! current_user_can( 'unfiltered_html' ) ) {
$data = map_deep( $data, 'wp_kses_post' );
}
I tried the above (and cleared the browser cache) but it still doesn’t allow the
tag. The content of the pop-up post is replaced with the following message:
Welcome to popups plugin
Plugin Author
Damian
(@timersys)
If you comment out that like this it works?
//if ( ! current_user_can( 'unfiltered_html' ) ) {
// $data = map_deep( $data, 'wp_strip_all_tags' );
// }
Still the same issue when that part is commented out (as above).
I’m also using this piece of code by the way in the theme functions.php to allow editor access:
https://wppopups.com/docs/how-to-change-popup-settings-role-access/
-
This reply was modified 3 years, 6 months ago by
wellituser.
-
This reply was modified 3 years, 6 months ago by
wellituser.
Plugin Author
Damian
(@timersys)
Hi I don’t think it´s related to our plugin if commenting that out does not make any difference as that´s the only filter we use.
If you want to send admin credentials I could make some test at your site.
You could use the form at wppopups.com