Skip to:
Content

bbPress.org

Changeset 5044


Ignore:
Timestamp:
07/22/2013 03:56:23 AM (13 years ago)
Author:
johnjamesjacoby
Message:

Invert the explicit tinymce comparison in bbp_get_the_content() to look for !== false instead of === true. Fixes bug causing textarea output to be incorrectly escaped when using a custom tinymce stylesheet. Fixes #2369.

File:
1 edited

Legend:

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

    r5040 r5044  
    17151715
    17161716        // If using tinymce, remove our escaping and trust tinymce
    1717         if ( bbp_use_wp_editor() && ( true === $r['tinymce'] ) ) {
     1717        if ( bbp_use_wp_editor() && ( false !== $r['tinymce'] ) ) {
    17181718            remove_filter( 'bbp_get_form_forum_content', 'esc_textarea' );
    17191719            remove_filter( 'bbp_get_form_topic_content', 'esc_textarea' );
     
    17791779
    17801780        // Put the output into a usable variable
    1781         $output = ob_get_contents();
    1782 
    1783         // Flush the output buffer
    1784         ob_end_clean();
     1781        $output = ob_get_clean();
    17851782
    17861783        return apply_filters( 'bbp_get_the_content', $output, $args, $post_content );
Note: See TracChangeset for help on using the changeset viewer.