Skip to:
Content

bbPress.org


Ignore:
Timestamp:
05/03/2013 05:32:36 AM (13 years ago)
Author:
johnjamesjacoby
Message:

Switch to using esc_textarea() for filtering form post content values. When using TinyMCE, remove that textarea escaping, and trust tinymce to do its thing. See #2317. (2.3 branch)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.3/includes/common/template-tags.php

    r4874 r4878  
    16871687                ), 'get_the_content' );
    16881688
     1689                // If using tinymce, remove our escaping and trust tinymce
     1690                if ( true === $r['tinymce'] ) {
     1691                        remove_filter( 'bbp_get_form_forum_content', 'esc_textarea' );
     1692                        remove_filter( 'bbp_get_form_topic_content', 'esc_textarea' );
     1693                        remove_filter( 'bbp_get_form_reply_content', 'esc_textarea' );
     1694                }
     1695
    16891696                // Assume we are not editing
    16901697                $post_content = call_user_func( 'bbp_get_form_' . $r['context'] . '_content' );
Note: See TracChangeset for help on using the changeset viewer.