Adding $$custom_field to kses_allowed_protocols.
-
I had noticed a problem with using the $$custom_field:xx$$ parameter in posts, which because shortcoder uses this parameter to include custom fields and because shortcoder is now a post_type has now been causing problems for us in shortcodes.
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; }The page I need help with: [log in to see the link]
The topic ‘Adding $$custom_field to kses_allowed_protocols.’ is closed to new replies.