I think this has something to do with echo wp_kses_post( $product_attribute[‘value’] ) in product-attributes.php but removing wp_kses_post here and just echo $product_attribute[‘value’] makes no difference at all?
Is there another file that is used before this where kses is in use? Or is there a way to allow certain html markups in kses? I’ve tried hundreds of solutions on the web without look.
Thanks a lot!
]]>I originally wanted to post for support here but since the problem seemed not specific to shortcoder at first I posted it on the general support forum. I have resolved it there and noticed that it is somewhat specific to shortcoder after all because the use of the $$custom_field:xx$$ syntax is specific to shortcoder.
I propose something similar to the following code be added to the shortcoder plug-in to make sure that shortcoder’s custom field syntax is allowed in anchor tags.
add_filter( 'kses_allowed_protocols', 'dzb_allow_custom_field_protocol' );
function dzb_allow_custom_field_protocol( $protocols ) {
$protocols[] = '$$custom_field';
return $protocols;
}
]]>Adding an empty array to line 205 fixed the issue.
update_post_meta($post_id, ‘_coming_soon’, wp_kses($_POST[‘_coming_soon’], array()));
I see a message on my email form now saying “// We run KSES on update since we want to allow some HTML, so ignoring the ouput escape check.”
Can you please clarify, what is this exactly? Thank you very much for your help.
Yuliya.
]]>I cannot add “onclick” attribute on “Edit Unit” page. If you set “” on Title Format or Image Format,
it will ignore and clear this value.
“onclick” attribute is very useful for Google Analytics to help marketer get the click statistics.
]]>We have purchased Quiz Cat Elite as our client wishes to add personality quizzes to their site. They want to use an iframe within the results content, however Quiz Cat filters this out using kses tag stripping. We’re running Quiz Cat on a multisite – along with the unfiltered-mu plugin which allows site admins to include iframes in their content.
Unfiltered-mu is working in all other cases except for Quiz Cat. We suspect that the issue is in Quiz Cat’s implementation and direct calling of kses. If this is a bug we hope it can be reported to the development team and a fix rolled out.
In the meantime if there are any workarounds that would allow an iframe to be used in the quiz results, we would like to give this a try.
]]>[Mon Aug 29 05:27:03.464006 2016] [proxy_fcgi:error] [pid 59440:tid 140296954382080] [client 86.150.54.89:52873] AH01071: Got error ‘PHP message: PHP Warning: in_array() expects parameter 2 to be array, null given in /var/www/vhosts/welovestalbans.com/httpdocs/wp-includes/kses.php on line 1430\nPHP message: PHP Warning: in_array() expects parameter 2 to be array, null given in /var/www/vhosts/welovestalbans.com/httpdocs/wp-includes/kses.php on line 1430\nPHP message: PHP Warning: in_array() expects parameter 2 to be array, null given in /var/www/vhosts/welovestalbans.com/httpdocs/wp-includes/kses.php on line 1430\nPHP message: PHP Warning: in_array() expects parameter 2 to be array, null given in /var/www/vhosts/welovestalbans.com/httpdocs/wp-includes/kses.php on line 1430\nPHP message: PHP Warning: in_array() expects parameter 2 to be array, null given in /var/www/vhosts/welovestalbans.com/httpdocs/wp-includes/kses.php on line 1430\nPHP message: PHP Warning: in_array() expects parameter 2 to be array, null given in /var/www/vhosts/welovestalbans.com/httpdocs/wp-includes/kses.php on line 1430\nPHP message: PHP Warning: in_array() expects parameter 2 to be array, null given in /var/www/vhosts/welovestalbans.com/httpdocs/wp-includes/kses.php on line 1430\nPHP message: PHP Warning: in_array() expects parameter 2 to be array, null given in /var/www/vhosts/welovestalbans.com/httpdocs/wp-includes/kses.php on line 1430\nPHP message: PHP Warning: in_array() expects parameter 2 to be array, null given in /var/www/vhosts/welovestalbans.com/httpdocs/wp-includes/kses.php on line 1430\nPHP message: PHP Warning: in_array() expects parameter 2 to be array, null given in /var/www/vhosts/welovestalbans.com/httpdocs/wp-includes/kses.php on line 1430\nPHP message: PHP Warning: in_array() expects parameter 2 to be array, null given in /var/www/vhosts/welovestalbans.com/httpdocs/wp-includes/kses.php on line 1430\nPHP message: PHP Warning: in_array() expects parameter 2 to be array, null given in /var/www/vhosts/welovestalbans.com/httpdocs/wp-includes/kses.php on line 1430\nPHP message: PHP Warning: in_array() expects parameter 2 to be array, null given in /var/www/vhosts/welovestalbans.com/httpdocs/wp-includes/kses.php on line 1430\nPHP message: PHP Warning: in_array() expects parameter 2 to be array, null given in /var/www/vhosts/welovestalbans.com/httpdocs/wp-includes/kses.php on line 1430\nPHP message: PHP Warning: in_array() expects parameter 2 to be array, null given in /var/www/vhosts/welovestalbans.com/httpdocs/wp-includes/kses.php on line 1430\nPHP message: PHP Warning: in_array() expects parameter 2 to be array, null given in /var/www/vhosts/welovestalbans.com/httpdocs/wp-includes/kses.php on line 1430\nPHP message: PHP Warning: in_array() expects parameter 2 to be array, null given in /var/www/vhosts/welovestalbans.com/httpdocs/wp-includes/kses.php on line 1430\nPHP message: PHP Warning: in_array() expects parameter 2 to be array, null given in /var/www/vhosts/welovestalbans.com/httpdocs/wp-includes/kses.php on line 1430\nPHP message: PHP Warning: in_array() expects parameter 2 to be array, null given in /var/www/vhosts/welovestalbans.com/httpdocs/wp-includes/kses.php on line 1430\nPHP message: PHP Warning: in_array() expects parameter 2 to be array, null given in /var/www/vhosts/welovestalbans.com/httpdocs/wp-includes/kses.php on line 1430\nPHP message: PHP Warning: in_array() expects parameter 2 to be array, null given in /var/www/vhosts/welovestalbans.com/httpdocs/wp-includes/kses.php on line 1430\nPHP message: PHP Warning: in_array() expects parameter 2 to be array, null given in /var/www/vhosts/welovestalbans.com/httpdocs/wp-includes/kses.php on line 1430\nPHP message: PHP Warning: in_array() expects parameter 2 to be array, null given in /var/www/vhosts/welovestalbans.com/httpdocs/wp-includes/kses.php on line 1430\nPHP message: PHP Warning: in_array() expects parameter 2 to be array, null given in /var/www/vhosts/welovestalbans.com/httpdocs/wp-includes/kses.php on line 1430\nPHP message: PHP Warning: in_array() expects parameter 2 to be array, null given in /var/www/vhosts/welovestalbans.com/httpdocs/wp-includes/kses.php on line 1430\nPHP message: PHP Warning: in_array() expects parameter 2 to be array, null given in /var/www/vhosts/welovestalbans.com/httpdocs/wp-includes/kses.php on line 1430\nPHP message: PHP Warning: in_array() expects parameter 2 to be array, null given in /var/www/vhosts/welovestalbans.com/httpdocs/wp-includes/kses.php on line 1430\nPHP message: PHP Warning: in_array() expects parameter 2 to be array, null given in /var/www/vhosts/welovestalbans.com/httpdocs/wp-includes/kses.php on line 1430\nPHP message: PHP Warning: in_array() expects parameter 2 to be array, null given in /var/www/vhosts/welovestalbans.com/httpdocs/wp-includes/kses.php on line 1430\nPHP message: PHP Warning: in_array() expects parameter 2 to be array, null given in /var/www/vhosts/welovestalbans.com/httpdocs/wp-includes/kses.php on line 1430\n’, referer: https://welovestalbans.com/wp-admin/edit.php
The issue is that the button in the admin bar is linking to a url like this : https://welovestalbans.com/wp-admin/post.php?post=2& amp ;action=edit and it should say https://welovestalbans.com/wp-admin/post.php?post=2&action=edit (i.e. not convert the & to a character reference &). I’ve:
– Checked the behaviour is wrong – other sites don’t do it
– Disabled ALL plugins and tested….same issue
– Checked it in Firefox and Chrome…same bad behaviour
– Re-installed the recent update to WordPress
Here is a screenshot of my problem: Screenshot
I disabled the plugin in the meantime until my problem is resolved. This is a great plugin and I’d really want to fix it. Thanks!
https://www.ads-software.com/plugins/allfacebook-instant-articles/
]]>Yesterday I was uploading new posts to the blog, everything was normal.
So today I tried do access the site and this message was showed up:
Parse error: syntax error, unexpected ”’ (T_ENCAPSED_AND_WHITESPACE), expecting ‘)’ in /home/fornasari.com.br/www/wp-includes/kses.php on line 1316
How can I solve this without upgrading my host plan?
Is this a memory thing? Should I delete some images (I think I can do that via FTP)?
Totally lost.
Thank you.
]]>I’m using the wp-tiles plugin to show a few custom posts as tiles.
The plugin allows to define content that’s shown on top of a tile via a template.
Inside the template you can access post meta via a “%meta:MY_POST_META%” string.
This works perfectly fine but if you load more tiles via ajax (the plugin supports this) the template string is passed through wp_kses_post and the “%meta:” is stripped inside a href value (i’m creating a list of links on top of the tile).
I’m guessing this is stripped because it’s interpreted as a bad protocol.
Is there any way to add a custom protocol to the kses whitelist or another workaround where i don’t have to edit code outside of my child theme?
Any form of input is appreciated