Skip to:
Content

bbPress.org


Ignore:
Timestamp:
08/02/2013 07:20:49 AM (13 years ago)
Author:
johnjamesjacoby
Message:

Normalize forum, topic, and reply dropdown form fields and associated functions. Includes several new functions with _get_ equivalents to replace incorrectly named _select() functions.

First pass at adding custom topic status handling. Props jkudish. See #2187.

Also replaces $wpdb->update() calls with wp_update_post() in associated functions. Fixes #2351.

File:
1 edited

Legend:

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

    r4994 r5060  
    128128                            <label for="bbp_stick_topic"><?php _e( 'Topic Type:', 'bbpress' ); ?></label><br />
    129129
    130                             <?php bbp_topic_type_select(); ?>
     130                            <?php bbp_form_topic_type_dropdown(); ?>
    131131
    132132                        </p>
     
    134134                        <?php do_action( 'bbp_theme_after_topic_form_type' ); ?>
    135135
     136                        <?php do_action( 'bbp_theme_before_topic_form_status' ); ?>
     137
     138                        <p>
     139
     140                            <label for="bbp_topic_status"><?php _e( 'Topic Status:', 'bbpress' ); ?></label><br />
     141
     142                            <?php bbp_form_topic_status_dropdown(); ?>
     143
     144                        </p>
     145
     146                        <?php do_action( 'bbp_theme_after_topic_form_status' ); ?>
     147
    136148                    <?php endif; ?>
    137149
     
    163175
    164176                        <fieldset class="bbp-form">
    165                             <legend><?php _e( 'Revision', 'bbpress' ); ?></legend>
    166                             <div>
     177                            <legend>
    167178                                <input name="bbp_log_topic_edit" id="bbp_log_topic_edit" type="checkbox" value="1" <?php bbp_form_topic_log_edit(); ?> tabindex="<?php bbp_tab_index(); ?>" />
    168179                                <label for="bbp_log_topic_edit"><?php _e( 'Keep a log of this edit:', 'bbpress' ); ?></label><br />
    169                             </div>
     180                            </legend>
    170181
    171182                            <div>
Note: See TracChangeset for help on using the changeset viewer.