Making WordPress.org


Ignore:
Timestamp:
08/02/2017 04:07:46 AM (8 years ago)
Author:
SergeyBiryukov
Message:

Support Theme: Remove "Topic Type" dropdown from the topic form.

Given that plugin or theme stickies are handled differently from regular topics, there's no need for a moderator or admin to be able to create a topic and instantly sticky it to a forum or view when it's only saving them one extra click.

Fixes #3015.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/form-topic.php

    r5622 r5733  
    160160                    <?php endif; ?>
    161161
    162                     <?php if ( current_user_can( 'moderate', bbp_get_topic_id() ) ) : ?>
    163 
    164                         <?php do_action( 'bbp_theme_before_topic_form_type' ); ?>
    165 
    166                         <p>
    167 
    168                             <label for="bbp_stick_topic_select"><?php _e( 'Topic Type:', 'wporg-forums' ); ?></label><br />
    169 
    170                             <?php bbp_topic_type_select(); ?>
    171 
    172                         </p>
    173 
    174                         <?php do_action( 'bbp_theme_after_topic_form_type' ); ?>
    175 
    176                     <?php endif; ?>
    177 
    178162                    <?php if ( bbp_is_subscriptions_active() && !bbp_is_anonymous() && ( !bbp_is_topic_edit() || ( bbp_is_topic_edit() && !bbp_is_topic_anonymous() ) ) ) : ?>
    179163
Note: See TracChangeset for help on using the changeset viewer.