Skip to:
Content

bbPress.org

Changeset 4960


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().

Location:
trunk/templates/default/bbpress
Files:
3 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">
  • 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">
  • 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.