Skip to:
Content

bbPress.org


Ignore:
Timestamp:
08/21/2013 09:11:47 PM (8 years ago)
Author:
johnjamesjacoby
Message:

Add 'show_none' to forum ID dropdown in form-topic.php template part. Fixes UX problem where a new-topic page would automatically select the first option in the list for topics to go in. Also escape output of 'show_none' in bbp_get_dropdown(). Fixes #2390.

File:
1 edited

Legend:

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

    r5060 r5084  
    113113                        <p>
    114114                            <label for="bbp_forum_id"><?php _e( 'Forum:', 'bbpress' ); ?></label><br />
    115                             <?php bbp_dropdown( array( 'selected' => bbp_get_form_topic_forum() ) ); ?>
     115                            <?php
     116                                bbp_dropdown( array(
     117                                    'show_none' => __( '(No Forum)', 'bbpress' ),
     118                                    'selected'  => bbp_get_form_topic_forum()
     119                                ) );
     120                            ?>
    116121                        </p>
    117122
Note: See TracChangeset for help on using the changeset viewer.