Links being stripped in posts
-
Hi there,
I’m trying to work out what’s actually going on here.
Whenever any person (including myself as keymaster) inserts a link, it is stripped from the post when it gets displayed. All othe formatting seems to make it through.
I have added the following code to the theme’s functions.php to try and enable this functionality:add_action( 'bbp_kses_allowed_tags','pyg_kses_allowed_tags',999,1); function pyg_kses_allowed_tags($input){ return array( // paragraphs 'p' => array( 'style' => array() ), 'span' => array( 'style' => array() ), // Links 'a' => array( 'href' => array(), 'title' => array(), 'rel' => array() ), // Quotes 'blockquote' => array( 'cite' => array() ), // Code 'code' => array(), 'pre' => array(), // Formatting 'em' => array(), 'strong' => array(), 'del' => array( 'datetime' => true, ), // Lists 'ul' => array(), 'ol' => array( 'start' => true, ), 'li' => array(), // Images 'img' => array( 'src' => true, 'border' => true, 'alt' => true, 'height' => true, 'width' => true, ) ); }
I have tried to find other documentation to try and work out why this is occurring and have drawn a blank. Anybody have any other suggestions?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.