Skip to:
Content

bbPress.org


Ignore:
Timestamp:
04/26/2013 11:00:38 AM (12 years ago)
Author:
johnjamesjacoby
Message:

Audit procedure for posting pre-formatted code in topics and replies:

  • Invert code-trick & code-trick-reverse filters to happen pre-save and on output.
  • Use esc_html() filter rather than esc_textarea() for textarea output when editing content, to prevent double escaping after above code-trick-reversal.
  • Introduce bbp_rel_nofollow() and callback, to handle this on output rather than input, to prevent mucking up preformatted code, and replace wp_rel_nofollow() usages with this.
  • Disable visual-editor by default. It's causing code formatting issues when switching between editor types (enable at your own risk in a plugin for now.)
  • Fixes #1967 (trunk)
File:
1 edited

Legend:

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

    r4833 r4866  
    16781678            'tabfocus_elements' => 'bbp_topic_title,bbp_topic_tags',
    16791679            'editor_class'      => 'bbp-the-content',
    1680             'tinymce'           => true,
     1680            'tinymce'           => false,
    16811681            'teeny'             => true,
    16821682            'quicktags'         => true,
     
    17051705
    17061706            // Output the editor
    1707             wp_editor( htmlspecialchars_decode( $post_content, ENT_QUOTES ), 'bbp_' . $r['context'] . '_content', array(
     1707            wp_editor( $post_content, 'bbp_' . $r['context'] . '_content', array(
    17081708                'wpautop'           => $r['wpautop'],
    17091709                'media_buttons'     => $r['media_buttons'],
Note: See TracChangeset for help on using the changeset viewer.