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-reply.php

    r4944 r4960  
    5555                    <?php do_action( 'bbp_theme_before_reply_form_content' ); ?>
    5656
    57                     <?php if ( !function_exists( 'wp_editor' ) ) : ?>
    58 
    59                         <p>
    60                             <label for="bbp_reply_content"><?php _e( 'Reply:', 'bbpress' ); ?></label><br />
    61                             <textarea id="bbp_reply_content" tabindex="<?php bbp_tab_index(); ?>" name="bbp_reply_content" rows="6"><?php bbp_form_reply_content(); ?></textarea>
    62                         </p>
    63 
    64                     <?php else : ?>
    65 
    66                         <?php bbp_the_content( array( 'context' => 'reply' ) ); ?>
    67 
    68                     <?php endif; ?>
     57                    <?php bbp_the_content( array( 'context' => 'reply' ) ); ?>
    6958
    7059                    <?php do_action( 'bbp_theme_after_reply_form_content' ); ?>
    7160
    72                     <?php if ( !current_user_can( 'unfiltered_html' ) ) : ?>
     61                    <?php if ( ! ( bbp_use_wp_editor() || current_user_can( 'unfiltered_html' ) ) ) : ?>
    7362
    7463                        <p class="form-allowed-tags">
Note: See TracChangeset for help on using the changeset viewer.