Bug with multiple quotes [found a patch]
-
Hi !
There is a bug when you are trying to quote a post who has been quoted. A normal user can’t quote a post who has been quoted.
For instance, your post will look like something like that.Yohann wrote:
<div class=”d4p-bbt-quote-title”>Yohann wrote:</div>
quote level 1 : it worksHere it’s the test page : https://forum.my-shield.com/topic/example/
I found out a way to avoid this bad display. This problem is due to security issue because a normal user can’t use html tags.
I finally made a patch that works with wordpress 3.9.1
patch for wordpress 3.9.1-locate your functions.php file in your active theme directory
– add this piece of code (it will allow some html tags necessary for the quote functionnality)add_action( 'bbp_kses_allowed_tags','bbp_allow_tags',999,1); function bbp_allow_tags($input){ return array( //Url 'a' => array( 'href' => array(), 'rel' => array() ), // Quotes 'blockquote' => array( 'class' => array() ), // Div 'div' => array( 'class' => array() ) ); }
Best regards
- The topic ‘Bug with multiple quotes [found a patch]’ is closed to new replies.