Skip to:
Content

bbPress.org


Ignore:
Timestamp:
05/28/2013 04:12:53 PM (13 years ago)
Author:
johnjamesjacoby
Message:

Only show allowed tags when not using the fancy editor or user does not have unfiltered_html cap. Also remove function_exists() check for wp_editor().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/templates/default/bbpress/form-forum.php

    r4733 r4960  
    7373                    <?php do_action( 'bbp_theme_before_forum_form_content' ); ?>
    7474
    75                     <?php if ( !function_exists( 'wp_editor' ) ) : ?>
    76 
    77                         <p>
    78                             <label for="bbp_forum_content"><?php _e( 'Forum Description:', 'bbpress' ); ?></label><br />
    79                             <textarea id="bbp_forum_content" tabindex="<?php bbp_tab_index(); ?>" name="bbp_forum_content" cols="60" rows="10"><?php bbp_form_forum_content(); ?></textarea>
    80                         </p>
    81 
    82                     <?php else : ?>
    83 
    84                         <?php bbp_the_content( array( 'context' => 'forum' ) ); ?>
    85 
    86                     <?php endif; ?>
     75                    <?php bbp_the_content( array( 'context' => 'forum' ) ); ?>
    8776
    8877                    <?php do_action( 'bbp_theme_after_forum_form_content' ); ?>
    8978
    90                     <?php if ( !current_user_can( 'unfiltered_html' ) ) : ?>
     79                    <?php if ( ! ( bbp_use_wp_editor() || current_user_can( 'unfiltered_html' ) ) ) : ?>
    9180
    9281                        <p class="form-allowed-tags">
Note: See TracChangeset for help on using the changeset viewer.