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

    r4823 r4960  
    8181                    <?php do_action( 'bbp_theme_before_topic_form_content' ); ?>
    8282
    83                     <?php if ( !function_exists( 'wp_editor' ) ) : ?>
    84 
    85                         <p>
    86                             <label for="bbp_topic_content"><?php _e( 'Topic:', 'bbpress' ); ?></label><br />
    87                             <textarea id="bbp_topic_content" tabindex="<?php bbp_tab_index(); ?>" name="bbp_topic_content" cols="60" rows="6"><?php bbp_form_topic_content(); ?></textarea>
    88                         </p>
    89 
    90                     <?php else : ?>
    91 
    92                         <?php bbp_the_content( array( 'context' => 'topic' ) ); ?>
    93 
    94                     <?php endif; ?>
     83                    <?php bbp_the_content( array( 'context' => 'topic' ) ); ?>
    9584
    9685                    <?php do_action( 'bbp_theme_after_topic_form_content' ); ?>
    9786
    98                     <?php if ( !current_user_can( 'unfiltered_html' ) ) : ?>
     87                    <?php if ( ! ( bbp_use_wp_editor() || current_user_can( 'unfiltered_html' ) ) ) : ?>
    9988
    10089                        <p class="form-allowed-tags">
Note: See TracChangeset for help on using the changeset viewer.