Changeset 5561
- Timestamp:
- 11/10/2014 11:21:48 PM (10 years ago)
- Location:
- trunk/src
- Files:
-
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bbpress.php
r5469 r5561 277 277 $this->extend = new stdClass(); // Plugins add data here 278 278 $this->errors = new WP_Error(); // Feedback 279 280 /** Deprecated ********************************************************/ 281 279 282 $this->tab_index = apply_filters( 'bbp_default_tab_index', 100 ); 280 283 } -
trunk/src/includes/admin/metaboxes.php
r5510 r5561 356 356 // Output-related 357 357 'select_id' => 'parent_id', 358 'tab' => bbp_get_tab_index(),359 358 'options_only' => false, 360 359 'show_none' => __( '— No parent —', 'bbpress' ), … … 438 437 // Output-related 439 438 'select_id' => 'parent_id', 440 'tab' => bbp_get_tab_index(),441 439 'options_only' => false, 442 440 'show_none' => __( '— No parent —', 'bbpress' ), … … 508 506 // Output-related 509 507 'select_id' => 'bbp_forum_id', 510 'tab' => bbp_get_tab_index(),511 508 'options_only' => false, 512 509 'show_none' => __( '— No parent —', 'bbpress' ), -
trunk/src/includes/common/template.php
r5559 r5561 1321 1321 * 1322 1322 * @since bbPress (r2810) 1323 * 1323 * @deprecated since version 2.6 1324 * @link https://bbpress.trac.wordpress.org/attachment/ticket/2714 Trac Ticket 1324 1325 * @param int $auto_increment Optional. Default true. Set to false to prevent 1325 1326 * increment … … 1337 1338 * 1338 1339 * @since bbPress (r2810) 1339 * 1340 * @deprecated bbPress (r5560) 1341 * @link https://bbpress.trac.wordpress.org/attachment/ticket/2714 Trac Ticket 1340 1342 * @uses apply_filters Allows return value to be filtered 1341 1343 * @param int $auto_increment Optional. Default true. Set to false to … … 1389 1391 * {@link BBP_Walker_Dropdown} 1390 1392 * - select_id: ID of the select box. Defaults to 'bbp_forum_id' 1391 * - tab: Tabindex value. False or integer1393 * - tab: Deprecated. Tabindex value. False or integer 1392 1394 * - options_only: Show only <options>? No <select>? 1393 1395 * - show_none: Boolean or String __( '(No Forum)', 'bbpress' ) … … 1429 1431 // Output-related 1430 1432 'select_id' => 'bbp_forum_id', 1431 'tab' => bbp_get_tab_index(),1433 'tab' => false, 1432 1434 'options_only' => false, 1433 1435 'show_none' => false, … … 1774 1776 'media_buttons' => false, 1775 1777 'textarea_rows' => '12', 1776 'tabindex' => bbp_get_tab_index(),1778 'tabindex' => false, 1777 1779 'tabfocus_elements' => 'bbp_topic_title,bbp_topic_tags', 1778 1780 'editor_class' => 'bbp-the-content', … … 1836 1838 * escaping the editable output, mucking up existing content. 1837 1839 */ 1838 else : ?> 1839 1840 <textarea id="bbp_<?php echo esc_attr( $r['context'] ); ?>_content" class="<?php echo esc_attr( $r['editor_class'] ); ?>" name="bbp_<?php echo esc_attr( $r['context'] ); ?>_content" cols="60" rows="<?php echo esc_attr( $r['textarea_rows'] ); ?>" tabindex="<?php echo esc_attr( $r['tabindex'] ); ?>"><?php echo $post_content; ?></textarea> 1840 else : 1841 1842 // Setup the tab index attribute 1843 $tab = !empty( $r['tab'] ) ? ' tabindex="' . intval( $r['tab'] ) . '"' : ''; ?> 1844 1845 <textarea id="bbp_<?php echo esc_attr( $r['context'] ); ?>_content" class="<?php echo esc_attr( $r['editor_class'] ); ?>" name="bbp_<?php echo esc_attr( $r['context'] ); ?>_content" cols="60" rows="<?php echo esc_attr( $r['textarea_rows'] ); ?>" <?php echo $tab; ?>><?php echo $post_content; ?></textarea> 1841 1846 1842 1847 <?php endif; -
trunk/src/includes/common/widgets.php
r5498 r5561 91 91 <div class="bbp-username"> 92 92 <label for="user_login"><?php _e( 'Username', 'bbpress' ); ?>: </label> 93 <input type="text" name="log" value="<?php bbp_sanitize_val( 'user_login', 'text' ); ?>" size="20" id="user_login" tabindex="<?php bbp_tab_index(); ?>"/>93 <input type="text" name="log" value="<?php bbp_sanitize_val( 'user_login', 'text' ); ?>" size="20" id="user_login" /> 94 94 </div> 95 95 96 96 <div class="bbp-password"> 97 97 <label for="user_pass"><?php _e( 'Password', 'bbpress' ); ?>: </label> 98 <input type="password" name="pwd" value="<?php bbp_sanitize_val( 'user_pass', 'password' ); ?>" size="20" id="user_pass" tabindex="<?php bbp_tab_index(); ?>"/>98 <input type="password" name="pwd" value="<?php bbp_sanitize_val( 'user_pass', 'password' ); ?>" size="20" id="user_pass" /> 99 99 </div> 100 100 101 101 <div class="bbp-remember-me"> 102 <input type="checkbox" name="rememberme" value="forever" <?php checked( bbp_get_sanitize_val( 'rememberme', 'checkbox' ), true, true ); ?> id="rememberme" tabindex="<?php bbp_tab_index(); ?>"/>102 <input type="checkbox" name="rememberme" value="forever" <?php checked( bbp_get_sanitize_val( 'rememberme', 'checkbox' ), true, true ); ?> id="rememberme" /> 103 103 <label for="rememberme"><?php _e( 'Remember Me', 'bbpress' ); ?></label> 104 104 </div> … … 108 108 <?php do_action( 'login_form' ); ?> 109 109 110 <button type="submit" name="user-submit" id="user-submit" tabindex="<?php bbp_tab_index(); ?>"class="button submit user-submit"><?php _e( 'Log In', 'bbpress' ); ?></button>110 <button type="submit" name="user-submit" id="user-submit" class="button submit user-submit"><?php _e( 'Log In', 'bbpress' ); ?></button> 111 111 112 112 <?php bbp_user_login_fields(); ?> -
trunk/src/includes/forums/template.php
r5559 r5561 2420 2420 * @param $args This function supports these arguments: 2421 2421 * - select_id: Select id. Defaults to bbp_forum_type 2422 * - tab: Tabindex2422 * - tab: Deprecated. Tabindex 2423 2423 * - forum_id: Forum id 2424 2424 * - selected: Override the selected option … … 2435 2435 * @param $args This function supports these arguments: 2436 2436 * - select_id: Select id. Defaults to bbp_forum_type 2437 * - tab: Tabindex2437 * - tab: Deprecated. Tabindex 2438 2438 * - forum_id: Forum id 2439 2439 * - selected: Override the selected option … … 2456 2456 $r = bbp_parse_args( $args, array( 2457 2457 'select_id' => 'bbp_forum_type', 2458 'tab' => bbp_get_tab_index(),2458 'tab' => false, 2459 2459 'forum_id' => $forum_id, 2460 2460 'selected' => false … … 2512 2512 * @param $args This function supports these arguments: 2513 2513 * - select_id: Select id. Defaults to bbp_forum_status 2514 * - tab: Tabindex2514 * - tab: Deprecated. Tabindex 2515 2515 * - forum_id: Forum id 2516 2516 * - selected: Override the selected option … … 2527 2527 * @param $args This function supports these arguments: 2528 2528 * - select_id: Select id. Defaults to bbp_forum_status 2529 * - tab: Tabindex2529 * - tab: Deprecated. Tabindex 2530 2530 * - forum_id: Forum id 2531 2531 * - selected: Override the selected option … … 2548 2548 $r = bbp_parse_args( $args, array( 2549 2549 'select_id' => 'bbp_forum_status', 2550 'tab' => bbp_get_tab_index(),2550 'tab' => false, 2551 2551 'forum_id' => $forum_id, 2552 2552 'selected' => false … … 2604 2604 * @param $args This function supports these arguments: 2605 2605 * - select_id: Select id. Defaults to bbp_forum_visibility 2606 * - tab: Tabindex2606 * - tab: Deprecated. Tabindex 2607 2607 * - forum_id: Forum id 2608 2608 * - selected: Override the selected option … … 2619 2619 * @param $args This function supports these arguments: 2620 2620 * - select_id: Select id. Defaults to bbp_forum_visibility 2621 * - tab: Tabindex2621 * - tab: Deprecated. Tabindex 2622 2622 * - forum_id: Forum id 2623 2623 * - selected: Override the selected option -
trunk/src/includes/replies/template.php
r5559 r5561 2765 2765 * @param $args This function supports these arguments: 2766 2766 * - select_id: Select id. Defaults to bbp_reply_status 2767 * - tab: Tabindex2767 * - tab: Deprecated. Tabindex 2768 2768 * - reply_id: Reply id 2769 2769 * - selected: Override the selected option … … 2783 2783 * @param $args This function supports these arguments: 2784 2784 * - select_id: Select id. Defaults to bbp_reply_status 2785 * - tab: Tabindex2785 * - tab: Deprecated. Tabindex 2786 2786 * - reply_id: Reply id 2787 2787 * - selected: Override the selected option … … 2792 2792 $r = bbp_parse_args( $args, array( 2793 2793 'select_id' => 'bbp_reply_status', 2794 'tab' => bbp_get_tab_index(),2794 'tab' => false, 2795 2795 'reply_id' => 0, 2796 2796 'selected' => false -
trunk/src/includes/topics/template.php
r5559 r5561 3214 3214 * @param $args This function supports these arguments: 3215 3215 * - select_id: Select id. Defaults to bbp_stick_topic 3216 * - tab: Tabindex3216 * - tab: Deprecated. Tabindex 3217 3217 * - topic_id: Topic id 3218 3218 * - selected: Override the selected option … … 3229 3229 * @param $args This function supports these arguments: 3230 3230 * - select_id: Select id. Defaults to bbp_stick_topic 3231 * - tab: Tabindex3231 * - tab: Deprecated. Tabindex 3232 3232 * - topic_id: Topic id 3233 3233 * - selected: Override the selected option … … 3243 3243 * @param $args This function supports these arguments: 3244 3244 * - select_id: Select id. Defaults to bbp_stick_topic 3245 * - tab: Tabindex3245 * - tab: Deprecated. Tabindex 3246 3246 * - topic_id: Topic id 3247 3247 * - selected: Override the selected option … … 3257 3257 $r = bbp_parse_args( $args, array( 3258 3258 'select_id' => 'bbp_stick_topic', 3259 'tab' => bbp_get_tab_index(),3259 'tab' => false, 3260 3260 'topic_id' => 0, 3261 3261 'selected' => false … … 3319 3319 * @param $args This function supports these arguments: 3320 3320 * - select_id: Select id. Defaults to bbp_topic_status 3321 * - tab: Tabindex3321 * - tab: Deprecated. Tabindex 3322 3322 * - topic_id: Topic id 3323 3323 * - selected: Override the selected option … … 3337 3337 * @param $args This function supports these arguments: 3338 3338 * - select_id: Select id. Defaults to bbp_topic_status 3339 * - tab: Tabindex3339 * - tab: Deprecated. Tabindex 3340 3340 * - topic_id: Topic id 3341 3341 * - selected: Override the selected option … … 3346 3346 $r = bbp_parse_args( $args, array( 3347 3347 'select_id' => 'bbp_topic_status', 3348 'tab' => bbp_get_tab_index(),3348 'tab' => false, 3349 3349 'topic_id' => 0, 3350 3350 'selected' => false -
trunk/src/templates/default/bbpress/form-anonymous.php
r5120 r5561 21 21 <p> 22 22 <label for="bbp_anonymous_author"><?php _e( 'Name (required):', 'bbpress' ); ?></label><br /> 23 <input type="text" id="bbp_anonymous_author" value="<?php bbp_author_display_name(); ?>" tabindex="<?php bbp_tab_index(); ?>"size="40" name="bbp_anonymous_name" />23 <input type="text" id="bbp_anonymous_author" value="<?php bbp_author_display_name(); ?>" size="40" name="bbp_anonymous_name" /> 24 24 </p> 25 25 26 26 <p> 27 27 <label for="bbp_anonymous_email"><?php _e( 'Mail (will not be published) (required):', 'bbpress' ); ?></label><br /> 28 <input type="text" id="bbp_anonymous_email" value="<?php bbp_author_email(); ?>" tabindex="<?php bbp_tab_index(); ?>"size="40" name="bbp_anonymous_email" />28 <input type="text" id="bbp_anonymous_email" value="<?php bbp_author_email(); ?>" size="40" name="bbp_anonymous_email" /> 29 29 </p> 30 30 31 31 <p> 32 32 <label for="bbp_anonymous_website"><?php _e( 'Website:', 'bbpress' ); ?></label><br /> 33 <input type="text" id="bbp_anonymous_website" value="<?php bbp_author_url(); ?>" tabindex="<?php bbp_tab_index(); ?>"size="40" name="bbp_anonymous_website" />33 <input type="text" id="bbp_anonymous_website" value="<?php bbp_author_url(); ?>" size="40" name="bbp_anonymous_website" /> 34 34 </p> 35 35 -
trunk/src/templates/default/bbpress/form-forum.php
r5319 r5561 66 66 <p> 67 67 <label for="bbp_forum_title"><?php printf( __( 'Forum Name (Maximum Length: %d):', 'bbpress' ), bbp_get_title_max_length() ); ?></label><br /> 68 <input type="text" id="bbp_forum_title" value="<?php bbp_form_forum_title(); ?>" tabindex="<?php bbp_tab_index(); ?>"size="40" name="bbp_forum_title" maxlength="<?php bbp_title_max_length(); ?>" />68 <input type="text" id="bbp_forum_title" value="<?php bbp_form_forum_title(); ?>" size="40" name="bbp_forum_title" maxlength="<?php bbp_title_max_length(); ?>" /> 69 69 </p> 70 70 … … 136 136 <?php do_action( 'bbp_theme_before_forum_form_submit_button' ); ?> 137 137 138 <button type="submit" tabindex="<?php bbp_tab_index(); ?>"id="bbp_forum_submit" name="bbp_forum_submit" class="button submit"><?php _e( 'Submit', 'bbpress' ); ?></button>138 <button type="submit" id="bbp_forum_submit" name="bbp_forum_submit" class="button submit"><?php _e( 'Submit', 'bbpress' ); ?></button> 139 139 140 140 <?php do_action( 'bbp_theme_after_forum_form_submit_button' ); ?> -
trunk/src/templates/default/bbpress/form-reply-move.php
r5115 r5561 38 38 39 39 <div> 40 <input name="bbp_reply_move_option" id="bbp_reply_move_option_reply" type="radio" checked="checked" value="topic" tabindex="<?php bbp_tab_index(); ?>"/>40 <input name="bbp_reply_move_option" id="bbp_reply_move_option_reply" type="radio" checked="checked" value="topic" /> 41 41 <label for="bbp_reply_move_option_reply"><?php printf( __( 'New topic in <strong>%s</strong> titled:', 'bbpress' ), bbp_get_forum_title( bbp_get_reply_forum_id( bbp_get_reply_id() ) ) ); ?></label> 42 <input type="text" id="bbp_reply_move_destination_title" value="<?php printf( __( 'Moved: %s', 'bbpress' ), bbp_get_reply_title() ); ?>" tabindex="<?php bbp_tab_index(); ?>"size="35" name="bbp_reply_move_destination_title" />42 <input type="text" id="bbp_reply_move_destination_title" value="<?php printf( __( 'Moved: %s', 'bbpress' ), bbp_get_reply_title() ); ?>" size="35" name="bbp_reply_move_destination_title" /> 43 43 </div> 44 44 … … 46 46 47 47 <div> 48 <input name="bbp_reply_move_option" id="bbp_reply_move_option_existing" type="radio" value="existing" tabindex="<?php bbp_tab_index(); ?>"/>48 <input name="bbp_reply_move_option" id="bbp_reply_move_option_existing" type="radio" value="existing" /> 49 49 <label for="bbp_reply_move_option_existing"><?php _e( 'Use an existing topic in this forum:', 'bbpress' ); ?></label> 50 50 … … 70 70 71 71 <div class="bbp-submit-wrapper"> 72 <button type="submit" tabindex="<?php bbp_tab_index(); ?>"id="bbp_move_reply_submit" name="bbp_move_reply_submit" class="button submit"><?php _e( 'Submit', 'bbpress' ); ?></button>72 <button type="submit" id="bbp_move_reply_submit" name="bbp_move_reply_submit" class="button submit"><?php _e( 'Submit', 'bbpress' ); ?></button> 73 73 </div> 74 74 </div> -
trunk/src/templates/default/bbpress/form-reply.php
r5495 r5561 74 74 <p> 75 75 <label for="bbp_topic_tags"><?php _e( 'Tags:', 'bbpress' ); ?></label><br /> 76 <input type="text" value="<?php bbp_form_topic_tags(); ?>" tabindex="<?php bbp_tab_index(); ?>"size="40" name="bbp_topic_tags" id="bbp_topic_tags" <?php disabled( bbp_is_topic_spam() ); ?> />76 <input type="text" value="<?php bbp_form_topic_tags(); ?>" size="40" name="bbp_topic_tags" id="bbp_topic_tags" <?php disabled( bbp_is_topic_spam() ); ?> /> 77 77 </p> 78 78 … … 87 87 <p> 88 88 89 <input name="bbp_topic_subscription" id="bbp_topic_subscription" type="checkbox" value="bbp_subscribe"<?php bbp_form_topic_subscribed(); ?> tabindex="<?php bbp_tab_index(); ?>"/>89 <input name="bbp_topic_subscription" id="bbp_topic_subscription" type="checkbox" value="bbp_subscribe"<?php bbp_form_topic_subscribed(); ?> /> 90 90 91 91 <?php if ( bbp_is_reply_edit() && ( bbp_get_reply_author_id() !== bbp_get_current_user_id() ) ) : ?> … … 135 135 <fieldset class="bbp-form"> 136 136 <legend> 137 <input name="bbp_log_reply_edit" id="bbp_log_reply_edit" type="checkbox" value="1" <?php bbp_form_reply_log_edit(); ?> tabindex="<?php bbp_tab_index(); ?>"/>137 <input name="bbp_log_reply_edit" id="bbp_log_reply_edit" type="checkbox" value="1" <?php bbp_form_reply_log_edit(); ?> /> 138 138 <label for="bbp_log_reply_edit"><?php _e( 'Keep a log of this edit:', 'bbpress' ); ?></label><br /> 139 139 </legend> … … 141 141 <div> 142 142 <label for="bbp_reply_edit_reason"><?php printf( __( 'Optional reason for editing:', 'bbpress' ), bbp_get_current_user_name() ); ?></label><br /> 143 <input type="text" value="<?php bbp_form_reply_edit_reason(); ?>" tabindex="<?php bbp_tab_index(); ?>"size="40" name="bbp_reply_edit_reason" id="bbp_reply_edit_reason" />143 <input type="text" value="<?php bbp_form_reply_edit_reason(); ?>" size="40" name="bbp_reply_edit_reason" id="bbp_reply_edit_reason" /> 144 144 </div> 145 145 </fieldset> … … 159 159 <?php bbp_cancel_reply_to_link(); ?> 160 160 161 <button type="submit" tabindex="<?php bbp_tab_index(); ?>"id="bbp_reply_submit" name="bbp_reply_submit" class="button submit"><?php _e( 'Submit', 'bbpress' ); ?></button>161 <button type="submit" id="bbp_reply_submit" name="bbp_reply_submit" class="button submit"><?php _e( 'Submit', 'bbpress' ); ?></button> 162 162 163 163 <?php do_action( 'bbp_theme_after_reply_form_submit_button' ); ?> -
trunk/src/templates/default/bbpress/form-search.php
r4999 r5561 14 14 <label class="screen-reader-text hidden" for="bbp_search"><?php _e( 'Search for:', 'bbpress' ); ?></label> 15 15 <input type="hidden" name="action" value="bbp-search-request" /> 16 <input t abindex="<?php bbp_tab_index(); ?>" type="text" value="<?php echo esc_attr( bbp_get_search_terms() ); ?>" name="bbp_search" id="bbp_search" />17 <input tabindex="<?php bbp_tab_index(); ?>"class="button" type="submit" id="bbp_search_submit" value="<?php esc_attr_e( 'Search', 'bbpress' ); ?>" />16 <input type="text" value="<?php echo esc_attr( bbp_get_search_terms() ); ?>" name="bbp_search" id="bbp_search" /> 17 <input class="button" type="submit" id="bbp_search_submit" value="<?php esc_attr_e( 'Search', 'bbpress' ); ?>" /> 18 18 </div> 19 19 </form> -
trunk/src/templates/default/bbpress/form-topic-merge.php
r5482 r5561 69 69 <?php if ( bbp_is_subscriptions_active() ) : ?> 70 70 71 <input name="bbp_topic_subscribers" id="bbp_topic_subscribers" type="checkbox" value="1" checked="checked" tabindex="<?php bbp_tab_index(); ?>"/>71 <input name="bbp_topic_subscribers" id="bbp_topic_subscribers" type="checkbox" value="1" checked="checked" /> 72 72 <label for="bbp_topic_subscribers"><?php _e( 'Merge topic subscribers', 'bbpress' ); ?></label><br /> 73 73 74 74 <?php endif; ?> 75 75 76 <input name="bbp_topic_favoriters" id="bbp_topic_favoriters" type="checkbox" value="1" checked="checked" tabindex="<?php bbp_tab_index(); ?>"/>76 <input name="bbp_topic_favoriters" id="bbp_topic_favoriters" type="checkbox" value="1" checked="checked" /> 77 77 <label for="bbp_topic_favoriters"><?php _e( 'Merge topic favoriters', 'bbpress' ); ?></label><br /> 78 78 79 79 <?php if ( bbp_allow_topic_tags() ) : ?> 80 80 81 <input name="bbp_topic_tags" id="bbp_topic_tags" type="checkbox" value="1" checked="checked" tabindex="<?php bbp_tab_index(); ?>"/>81 <input name="bbp_topic_tags" id="bbp_topic_tags" type="checkbox" value="1" checked="checked" /> 82 82 <label for="bbp_topic_tags"><?php _e( 'Merge topic tags', 'bbpress' ); ?></label><br /> 83 83 … … 92 92 93 93 <div class="bbp-submit-wrapper"> 94 <button type="submit" tabindex="<?php bbp_tab_index(); ?>"id="bbp_merge_topic_submit" name="bbp_merge_topic_submit" class="button submit"><?php _e( 'Submit', 'bbpress' ); ?></button>94 <button type="submit" id="bbp_merge_topic_submit" name="bbp_merge_topic_submit" class="button submit"><?php _e( 'Submit', 'bbpress' ); ?></button> 95 95 </div> 96 96 </div> -
trunk/src/templates/default/bbpress/form-topic-split.php
r5313 r5561 38 38 39 39 <div> 40 <input name="bbp_topic_split_option" id="bbp_topic_split_option_reply" type="radio" checked="checked" value="reply" tabindex="<?php bbp_tab_index(); ?>"/>40 <input name="bbp_topic_split_option" id="bbp_topic_split_option_reply" type="radio" checked="checked" value="reply" /> 41 41 <label for="bbp_topic_split_option_reply"><?php printf( __( 'New topic in <strong>%s</strong> titled:', 'bbpress' ), bbp_get_forum_title( bbp_get_topic_forum_id( bbp_get_topic_id() ) ) ); ?></label> 42 <input type="text" id="bbp_topic_split_destination_title" value="<?php printf( __( 'Split: %s', 'bbpress' ), bbp_get_topic_title() ); ?>" tabindex="<?php bbp_tab_index(); ?>"size="35" name="bbp_topic_split_destination_title" />42 <input type="text" id="bbp_topic_split_destination_title" value="<?php printf( __( 'Split: %s', 'bbpress' ), bbp_get_topic_title() ); ?>" size="35" name="bbp_topic_split_destination_title" /> 43 43 </div> 44 44 … … 46 46 47 47 <div> 48 <input name="bbp_topic_split_option" id="bbp_topic_split_option_existing" type="radio" value="existing" tabindex="<?php bbp_tab_index(); ?>"/>48 <input name="bbp_topic_split_option" id="bbp_topic_split_option_existing" type="radio" value="existing" /> 49 49 <label for="bbp_topic_split_option_existing"><?php _e( 'Use an existing topic in this forum:', 'bbpress' ); ?></label> 50 50 … … 73 73 <?php if ( bbp_is_subscriptions_active() ) : ?> 74 74 75 <input name="bbp_topic_subscribers" id="bbp_topic_subscribers" type="checkbox" value="1" checked="checked" tabindex="<?php bbp_tab_index(); ?>"/>75 <input name="bbp_topic_subscribers" id="bbp_topic_subscribers" type="checkbox" value="1" checked="checked" /> 76 76 <label for="bbp_topic_subscribers"><?php _e( 'Copy subscribers to the new topic', 'bbpress' ); ?></label><br /> 77 77 78 78 <?php endif; ?> 79 79 80 <input name="bbp_topic_favoriters" id="bbp_topic_favoriters" type="checkbox" value="1" checked="checked" tabindex="<?php bbp_tab_index(); ?>"/>80 <input name="bbp_topic_favoriters" id="bbp_topic_favoriters" type="checkbox" value="1" checked="checked" /> 81 81 <label for="bbp_topic_favoriters"><?php _e( 'Copy favoriters to the new topic', 'bbpress' ); ?></label><br /> 82 82 83 83 <?php if ( bbp_allow_topic_tags() ) : ?> 84 84 85 <input name="bbp_topic_tags" id="bbp_topic_tags" type="checkbox" value="1" checked="checked" tabindex="<?php bbp_tab_index(); ?>"/>85 <input name="bbp_topic_tags" id="bbp_topic_tags" type="checkbox" value="1" checked="checked" /> 86 86 <label for="bbp_topic_tags"><?php _e( 'Copy topic tags to the new topic', 'bbpress' ); ?></label><br /> 87 87 … … 96 96 97 97 <div class="bbp-submit-wrapper"> 98 <button type="submit" tabindex="<?php bbp_tab_index(); ?>"id="bbp_merge_topic_submit" name="bbp_merge_topic_submit" class="button submit"><?php _e( 'Submit', 'bbpress' ); ?></button>98 <button type="submit" id="bbp_merge_topic_submit" name="bbp_merge_topic_submit" class="button submit"><?php _e( 'Submit', 'bbpress' ); ?></button> 99 99 </div> 100 100 </div> -
trunk/src/templates/default/bbpress/form-topic-tag.php
r5310 r5561 34 34 <div> 35 35 <label for="tag-name"><?php _e( 'Name:', 'bbpress' ); ?></label> 36 <input type="text" id="tag-name" name="tag-name" size="20" maxlength="40" tabindex="<?php bbp_tab_index(); ?>"value="<?php echo esc_attr( bbp_get_topic_tag_name() ); ?>" />36 <input type="text" id="tag-name" name="tag-name" size="20" maxlength="40" value="<?php echo esc_attr( bbp_get_topic_tag_name() ); ?>" /> 37 37 </div> 38 38 39 39 <div> 40 40 <label for="tag-slug"><?php _e( 'Slug:', 'bbpress' ); ?></label> 41 <input type="text" id="tag-slug" name="tag-slug" size="20" maxlength="40" tabindex="<?php bbp_tab_index(); ?>"value="<?php echo esc_attr( apply_filters( 'editable_slug', bbp_get_topic_tag_slug() ) ); ?>" />41 <input type="text" id="tag-slug" name="tag-slug" size="20" maxlength="40" value="<?php echo esc_attr( apply_filters( 'editable_slug', bbp_get_topic_tag_slug() ) ); ?>" /> 42 42 </div> 43 43 44 44 <div> 45 45 <label for="tag-description"><?php _e( 'Description:', 'bbpress' ); ?></label> 46 <input type="text" id="tag-description" name="tag-description" size="20" tabindex="<?php bbp_tab_index(); ?>"value="<?php echo esc_attr( bbp_get_topic_tag_description( array( 'before' => '', 'after' => '' ) ) ); ?>" />46 <input type="text" id="tag-description" name="tag-description" size="20" value="<?php echo esc_attr( bbp_get_topic_tag_description( array( 'before' => '', 'after' => '' ) ) ); ?>" /> 47 47 </div> 48 48 49 49 <div class="bbp-submit-wrapper"> 50 <button type="submit" tabindex="<?php bbp_tab_index(); ?>"class="button submit"><?php esc_attr_e( 'Update', 'bbpress' ); ?></button>50 <button type="submit" class="button submit"><?php esc_attr_e( 'Update', 'bbpress' ); ?></button> 51 51 52 52 <input type="hidden" name="tag-id" value="<?php bbp_topic_tag_id(); ?>" /> … … 72 72 <div> 73 73 <label for="tag-existing-name"><?php _e( 'Existing tag:', 'bbpress' ); ?></label> 74 <input type="text" id="tag-existing-name" name="tag-existing-name" size="22" tabindex="<?php bbp_tab_index(); ?>"maxlength="40" />74 <input type="text" id="tag-existing-name" name="tag-existing-name" size="22" maxlength="40" /> 75 75 </div> 76 76 77 77 <div class="bbp-submit-wrapper"> 78 <button type="submit" tabindex="<?php bbp_tab_index(); ?>"class="button submit" onclick="return confirm('<?php echo esc_js( sprintf( __( 'Are you sure you want to merge the "%s" tag into the tag you specified?', 'bbpress' ), bbp_get_topic_tag_name() ) ); ?>');"><?php esc_attr_e( 'Merge', 'bbpress' ); ?></button>78 <button type="submit" class="button submit" onclick="return confirm('<?php echo esc_js( sprintf( __( 'Are you sure you want to merge the "%s" tag into the tag you specified?', 'bbpress' ), bbp_get_topic_tag_name() ) ); ?>');"><?php esc_attr_e( 'Merge', 'bbpress' ); ?></button> 79 79 80 80 <input type="hidden" name="tag-id" value="<?php bbp_topic_tag_id(); ?>" /> … … 104 104 105 105 <div class="bbp-submit-wrapper"> 106 <button type="submit" tabindex="<?php bbp_tab_index(); ?>"class="button submit" onclick="return confirm('<?php echo esc_js( sprintf( __( 'Are you sure you want to delete the "%s" tag? This is permanent and cannot be undone.', 'bbpress' ), bbp_get_topic_tag_name() ) ); ?>');"><?php esc_attr_e( 'Delete', 'bbpress' ); ?></button>106 <button type="submit" class="button submit" onclick="return confirm('<?php echo esc_js( sprintf( __( 'Are you sure you want to delete the "%s" tag? This is permanent and cannot be undone.', 'bbpress' ), bbp_get_topic_tag_name() ) ); ?>');"><?php esc_attr_e( 'Delete', 'bbpress' ); ?></button> 107 107 108 108 <input type="hidden" name="tag-id" value="<?php bbp_topic_tag_id(); ?>" /> -
trunk/src/templates/default/bbpress/form-topic.php
r5497 r5561 77 77 <p> 78 78 <label for="bbp_topic_title"><?php printf( __( 'Topic Title (Maximum Length: %d):', 'bbpress' ), bbp_get_title_max_length() ); ?></label><br /> 79 <input type="text" id="bbp_topic_title" value="<?php bbp_form_topic_title(); ?>" tabindex="<?php bbp_tab_index(); ?>"size="40" name="bbp_topic_title" maxlength="<?php bbp_title_max_length(); ?>" />79 <input type="text" id="bbp_topic_title" value="<?php bbp_form_topic_title(); ?>" size="40" name="bbp_topic_title" maxlength="<?php bbp_title_max_length(); ?>" /> 80 80 </p> 81 81 … … 103 103 <p> 104 104 <label for="bbp_topic_tags"><?php _e( 'Topic Tags:', 'bbpress' ); ?></label><br /> 105 <input type="text" value="<?php bbp_form_topic_tags(); ?>" tabindex="<?php bbp_tab_index(); ?>"size="40" name="bbp_topic_tags" id="bbp_topic_tags" <?php disabled( bbp_is_topic_spam() ); ?> />105 <input type="text" value="<?php bbp_form_topic_tags(); ?>" size="40" name="bbp_topic_tags" id="bbp_topic_tags" <?php disabled( bbp_is_topic_spam() ); ?> /> 106 106 </p> 107 107 … … 161 161 162 162 <p> 163 <input name="bbp_topic_subscription" id="bbp_topic_subscription" type="checkbox" value="bbp_subscribe" <?php bbp_form_topic_subscribed(); ?> tabindex="<?php bbp_tab_index(); ?>"/>163 <input name="bbp_topic_subscription" id="bbp_topic_subscription" type="checkbox" value="bbp_subscribe" <?php bbp_form_topic_subscribed(); ?> /> 164 164 165 165 <?php if ( bbp_is_topic_edit() && ( bbp_get_topic_author_id() !== bbp_get_current_user_id() ) ) : ?> … … 184 184 <fieldset class="bbp-form"> 185 185 <legend> 186 <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(); ?>"/>186 <input name="bbp_log_topic_edit" id="bbp_log_topic_edit" type="checkbox" value="1" <?php bbp_form_topic_log_edit(); ?> /> 187 187 <label for="bbp_log_topic_edit"><?php _e( 'Keep a log of this edit:', 'bbpress' ); ?></label><br /> 188 188 </legend> … … 190 190 <div> 191 191 <label for="bbp_topic_edit_reason"><?php printf( __( 'Optional reason for editing:', 'bbpress' ), bbp_get_current_user_name() ); ?></label><br /> 192 <input type="text" value="<?php bbp_form_topic_edit_reason(); ?>" tabindex="<?php bbp_tab_index(); ?>"size="40" name="bbp_topic_edit_reason" id="bbp_topic_edit_reason" />192 <input type="text" value="<?php bbp_form_topic_edit_reason(); ?>" size="40" name="bbp_topic_edit_reason" id="bbp_topic_edit_reason" /> 193 193 </div> 194 194 </fieldset> … … 204 204 <?php do_action( 'bbp_theme_before_topic_form_submit_button' ); ?> 205 205 206 <button type="submit" tabindex="<?php bbp_tab_index(); ?>"id="bbp_topic_submit" name="bbp_topic_submit" class="button submit"><?php _e( 'Submit', 'bbpress' ); ?></button>206 <button type="submit" id="bbp_topic_submit" name="bbp_topic_submit" class="button submit"><?php _e( 'Submit', 'bbpress' ); ?></button> 207 207 208 208 <?php do_action( 'bbp_theme_after_topic_form_submit_button' ); ?> -
trunk/src/templates/default/bbpress/form-user-edit.php
r5035 r5561 23 23 <div> 24 24 <label for="first_name"><?php _e( 'First Name', 'bbpress' ) ?></label> 25 <input type="text" name="first_name" id="first_name" value="<?php bbp_displayed_user_field( 'first_name', 'edit' ); ?>" class="regular-text" tabindex="<?php bbp_tab_index(); ?>"/>25 <input type="text" name="first_name" id="first_name" value="<?php bbp_displayed_user_field( 'first_name', 'edit' ); ?>" class="regular-text" /> 26 26 </div> 27 27 28 28 <div> 29 29 <label for="last_name"><?php _e( 'Last Name', 'bbpress' ) ?></label> 30 <input type="text" name="last_name" id="last_name" value="<?php bbp_displayed_user_field( 'last_name', 'edit' ); ?>" class="regular-text" tabindex="<?php bbp_tab_index(); ?>"/>30 <input type="text" name="last_name" id="last_name" value="<?php bbp_displayed_user_field( 'last_name', 'edit' ); ?>" class="regular-text" /> 31 31 </div> 32 32 33 33 <div> 34 34 <label for="nickname"><?php _e( 'Nickname', 'bbpress' ); ?></label> 35 <input type="text" name="nickname" id="nickname" value="<?php bbp_displayed_user_field( 'nickname', 'edit' ); ?>" class="regular-text" tabindex="<?php bbp_tab_index(); ?>"/>35 <input type="text" name="nickname" id="nickname" value="<?php bbp_displayed_user_field( 'nickname', 'edit' ); ?>" class="regular-text" /> 36 36 </div> 37 37 … … 56 56 <div> 57 57 <label for="url"><?php _e( 'Website', 'bbpress' ) ?></label> 58 <input type="text" name="url" id="url" value="<?php bbp_displayed_user_field( 'user_url', 'edit' ); ?>" class="regular-text code" tabindex="<?php bbp_tab_index(); ?>"/>58 <input type="text" name="url" id="url" value="<?php bbp_displayed_user_field( 'user_url', 'edit' ); ?>" class="regular-text code" /> 59 59 </div> 60 60 … … 63 63 <div> 64 64 <label for="<?php echo esc_attr( $name ); ?>"><?php echo apply_filters( 'user_' . $name . '_label', $desc ); ?></label> 65 <input type="text" name="<?php echo esc_attr( $name ); ?>" id="<?php echo esc_attr( $name ); ?>" value="<?php bbp_displayed_user_field( $name, 'edit' ); ?>" class="regular-text" tabindex="<?php bbp_tab_index(); ?>"/>65 <input type="text" name="<?php echo esc_attr( $name ); ?>" id="<?php echo esc_attr( $name ); ?>" value="<?php bbp_displayed_user_field( $name, 'edit' ); ?>" class="regular-text" /> 66 66 </div> 67 67 … … 81 81 <div> 82 82 <label for="description"><?php _e( 'Biographical Info', 'bbpress' ); ?></label> 83 <textarea name="description" id="description" rows="5" cols="30" tabindex="<?php bbp_tab_index(); ?>"><?php bbp_displayed_user_field( 'description', 'edit' ); ?></textarea>83 <textarea name="description" id="description" rows="5" cols="30"><?php bbp_displayed_user_field( 'description', 'edit' ); ?></textarea> 84 84 </div> 85 85 … … 97 97 <div> 98 98 <label for="user_login"><?php _e( 'Username', 'bbpress' ); ?></label> 99 <input type="text" name="user_login" id="user_login" value="<?php bbp_displayed_user_field( 'user_login', 'edit' ); ?>" disabled="disabled" class="regular-text" tabindex="<?php bbp_tab_index(); ?>"/>99 <input type="text" name="user_login" id="user_login" value="<?php bbp_displayed_user_field( 'user_login', 'edit' ); ?>" disabled="disabled" class="regular-text" /> 100 100 </div> 101 101 … … 103 103 <label for="email"><?php _e( 'Email', 'bbpress' ); ?></label> 104 104 105 <input type="text" name="email" id="email" value="<?php bbp_displayed_user_field( 'user_email', 'edit' ); ?>" class="regular-text" tabindex="<?php bbp_tab_index(); ?>"/>105 <input type="text" name="email" id="email" value="<?php bbp_displayed_user_field( 'user_email', 'edit' ); ?>" class="regular-text" /> 106 106 107 107 <?php … … 124 124 <label for="pass1"><?php _e( 'New Password', 'bbpress' ); ?></label> 125 125 <fieldset class="bbp-form password"> 126 <input type="password" name="pass1" id="pass1" size="16" value="" autocomplete="off" tabindex="<?php bbp_tab_index(); ?>"/>126 <input type="password" name="pass1" id="pass1" size="16" value="" autocomplete="off" /> 127 127 <span class="description"><?php _e( 'If you would like to change the password type a new one. Otherwise leave this blank.', 'bbpress' ); ?></span> 128 128 129 <input type="password" name="pass2" id="pass2" size="16" value="" autocomplete="off" tabindex="<?php bbp_tab_index(); ?>"/>129 <input type="password" name="pass2" id="pass2" size="16" value="" autocomplete="off" /> 130 130 <span class="description"><?php _e( 'Type your new password again.', 'bbpress' ); ?></span><br /> 131 131 … … 153 153 <label for="super_admin"><?php _e( 'Network Role', 'bbpress' ); ?></label> 154 154 <label> 155 <input class="checkbox" type="checkbox" id="super_admin" name="super_admin"<?php checked( is_super_admin( bbp_get_displayed_user_id() ) ); ?> tabindex="<?php bbp_tab_index(); ?>"/>155 <input class="checkbox" type="checkbox" id="super_admin" name="super_admin"<?php checked( is_super_admin( bbp_get_displayed_user_id() ) ); ?> /> 156 156 <?php _e( 'Grant this user super admin privileges for the Network.', 'bbpress' ); ?> 157 157 </label> … … 176 176 <?php bbp_edit_user_form_fields(); ?> 177 177 178 <button type="submit" tabindex="<?php bbp_tab_index(); ?>"id="bbp_user_edit_submit" name="bbp_user_edit_submit" class="button submit user-submit"><?php bbp_is_user_home_edit() ? _e( 'Update Profile', 'bbpress' ) : _e( 'Update User', 'bbpress' ); ?></button>178 <button type="submit" id="bbp_user_edit_submit" name="bbp_user_edit_submit" class="button submit user-submit"><?php bbp_is_user_home_edit() ? _e( 'Update Profile', 'bbpress' ) : _e( 'Update User', 'bbpress' ); ?></button> 179 179 </div> 180 180 </fieldset> -
trunk/src/templates/default/bbpress/form-user-login.php
r5241 r5561 16 16 <div class="bbp-username"> 17 17 <label for="user_login"><?php _e( 'Username', 'bbpress' ); ?>: </label> 18 <input type="text" name="log" value="<?php bbp_sanitize_val( 'user_login', 'text' ); ?>" size="20" id="user_login" tabindex="<?php bbp_tab_index(); ?>"/>18 <input type="text" name="log" value="<?php bbp_sanitize_val( 'user_login', 'text' ); ?>" size="20" id="user_login" /> 19 19 </div> 20 20 21 21 <div class="bbp-password"> 22 22 <label for="user_pass"><?php _e( 'Password', 'bbpress' ); ?>: </label> 23 <input type="password" name="pwd" value="<?php bbp_sanitize_val( 'user_pass', 'password' ); ?>" size="20" id="user_pass" tabindex="<?php bbp_tab_index(); ?>"/>23 <input type="password" name="pwd" value="<?php bbp_sanitize_val( 'user_pass', 'password' ); ?>" size="20" id="user_pass" /> 24 24 </div> 25 25 26 26 <div class="bbp-remember-me"> 27 <input type="checkbox" name="rememberme" value="forever" <?php checked( bbp_get_sanitize_val( 'rememberme', 'checkbox' ) ); ?> id="rememberme" tabindex="<?php bbp_tab_index(); ?>"/>27 <input type="checkbox" name="rememberme" value="forever" <?php checked( bbp_get_sanitize_val( 'rememberme', 'checkbox' ) ); ?> id="rememberme" /> 28 28 <label for="rememberme"><?php _e( 'Keep me signed in', 'bbpress' ); ?></label> 29 29 </div> … … 33 33 <div class="bbp-submit-wrapper"> 34 34 35 <button type="submit" tabindex="<?php bbp_tab_index(); ?>"name="user-submit" class="button submit user-submit"><?php _e( 'Log In', 'bbpress' ); ?></button>35 <button type="submit" name="user-submit" class="button submit user-submit"><?php _e( 'Log In', 'bbpress' ); ?></button> 36 36 37 37 <?php bbp_user_login_fields(); ?> -
trunk/src/templates/default/bbpress/form-user-lost-pass.php
r5241 r5561 17 17 <p> 18 18 <label for="user_login" class="hide"><?php _e( 'Username or Email', 'bbpress' ); ?>: </label> 19 <input type="text" name="user_login" value="" size="20" id="user_login" tabindex="<?php bbp_tab_index(); ?>"/>19 <input type="text" name="user_login" value="" size="20" id="user_login" /> 20 20 </p> 21 21 </div> … … 25 25 <div class="bbp-submit-wrapper"> 26 26 27 <button type="submit" tabindex="<?php bbp_tab_index(); ?>"name="user-submit" class="button submit user-submit"><?php _e( 'Reset My Password', 'bbpress' ); ?></button>27 <button type="submit" name="user-submit" class="button submit user-submit"><?php _e( 'Reset My Password', 'bbpress' ); ?></button> 28 28 29 29 <?php bbp_user_lost_pass_fields(); ?> -
trunk/src/templates/default/bbpress/form-user-register.php
r5303 r5561 23 23 <div class="bbp-username"> 24 24 <label for="user_login"><?php _e( 'Username', 'bbpress' ); ?>: </label> 25 <input type="text" name="user_login" value="<?php bbp_sanitize_val( 'user_login' ); ?>" size="20" id="user_login" tabindex="<?php bbp_tab_index(); ?>"/>25 <input type="text" name="user_login" value="<?php bbp_sanitize_val( 'user_login' ); ?>" size="20" id="user_login" /> 26 26 </div> 27 27 28 28 <div class="bbp-email"> 29 29 <label for="user_email"><?php _e( 'Email', 'bbpress' ); ?>: </label> 30 <input type="text" name="user_email" value="<?php bbp_sanitize_val( 'user_email' ); ?>" size="20" id="user_email" tabindex="<?php bbp_tab_index(); ?>"/>30 <input type="text" name="user_email" value="<?php bbp_sanitize_val( 'user_email' ); ?>" size="20" id="user_email" /> 31 31 </div> 32 32 … … 35 35 <div class="bbp-submit-wrapper"> 36 36 37 <button type="submit" tabindex="<?php bbp_tab_index(); ?>"name="user-submit" class="button submit user-submit"><?php _e( 'Register', 'bbpress' ); ?></button>37 <button type="submit" name="user-submit" class="button submit user-submit"><?php _e( 'Register', 'bbpress' ); ?></button> 38 38 39 39 <?php bbp_user_register_fields(); ?>
Note: See TracChangeset
for help on using the changeset viewer.