Ticket #2714: 2714.patch
File 2714.patch, 49.5 KB (added by , 10 years ago) |
---|
-
src/bbpress.php
276 276 $this->domain = 'bbpress'; // Unique identifier for retrieving translated strings 277 277 $this->extend = new stdClass(); // Plugins add data here 278 278 $this->errors = new WP_Error(); // Feedback 279 $this->tab_index = apply_filters( 'bbp_default_tab_index', 100 );280 279 } 281 280 282 281 /** -
src/includes/admin/metaboxes.php
355 355 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' ), 361 360 'disable_categories' => false, … … 437 436 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' ), 443 441 'disable_categories' => current_user_can( 'edit_forums' ), … … 507 505 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' ), 513 510 'disable_categories' => current_user_can( 'edit_forums' ), -
src/includes/common/template.php
1313 1313 } 1314 1314 1315 1315 /** 1316 * Output the current tab index of a given form1317 *1318 * Use this function to handle the tab indexing of user facing forms within a1319 * template file. Calling this function will automatically increment the global1320 * tab index by default.1321 *1322 * @since bbPress (r2810)1323 *1324 * @param int $auto_increment Optional. Default true. Set to false to prevent1325 * increment1326 */1327 function bbp_tab_index( $auto_increment = true ) {1328 echo bbp_get_tab_index( $auto_increment );1329 }1330 1331 /**1332 * Return the current tab index of a given form1333 *1334 * Use this function to handle the tab indexing of user facing forms1335 * within a template file. Calling this function will automatically1336 * increment the global tab index by default.1337 *1338 * @since bbPress (r2810)1339 *1340 * @uses apply_filters Allows return value to be filtered1341 * @param int $auto_increment Optional. Default true. Set to false to1342 * prevent the increment1343 * @return int $bbp->tab_index The global tab index1344 */1345 function bbp_get_tab_index( $auto_increment = true ) {1346 $bbp = bbpress();1347 1348 if ( true === $auto_increment ) {1349 ++$bbp->tab_index;1350 }1351 1352 return apply_filters( 'bbp_get_tab_index', (int) $bbp->tab_index );1353 }1354 1355 /**1356 1316 * Output a select box allowing to pick which forum/topic a new topic/reply 1357 1317 * belongs in. 1358 1318 * … … 1388 1348 * - walker: Which walker to use? Defaults to 1389 1349 * {@link BBP_Walker_Dropdown} 1390 1350 * - select_id: ID of the select box. Defaults to 'bbp_forum_id' 1391 * - tab: Tabindex value. False or integer1392 1351 * - options_only: Show only <options>? No <select>? 1393 1352 * - show_none: Boolean or String __( '(No Forum)', 'bbpress' ) 1394 1353 * - disable_categories: Disable forum categories and closed forums? … … 1428 1387 1429 1388 // Output-related 1430 1389 'select_id' => 'bbp_forum_id', 1431 'tab' => bbp_get_tab_index(),1432 1390 'options_only' => false, 1433 1391 'show_none' => false, 1434 1392 'disable_categories' => true, … … 1477 1435 // Should this select appear disabled? 1478 1436 $disabled = disabled( isset( bbpress()->options[ $r['disabled'] ] ), true, false ); 1479 1437 1480 // Setup the tab index attribute1481 $tab = !empty( $r['tab'] ) ? ' tabindex="' . intval( $r['tab'] ) . '"' : '';1482 1483 1438 // Open the select tag 1484 $retval .= '<select name="' . esc_attr( $r['select_id'] ) . '" id="' . esc_attr( $r['select_id'] ) . '"' . $disabled . $tab .'>' . "\n";1439 $retval .= '<select name="' . esc_attr( $r['select_id'] ) . '" id="' . esc_attr( $r['select_id'] ) . '"' . $disabled . '>' . "\n"; 1485 1440 } 1486 1441 1487 1442 // Display a leading 'no-value' option, with or without custom text … … 1773 1728 'wpautop' => true, 1774 1729 'media_buttons' => false, 1775 1730 'textarea_rows' => '12', 1776 'tabindex' => bbp_get_tab_index(),1777 1731 'tabfocus_elements' => 'bbp_topic_title,bbp_topic_tags', 1778 1732 'editor_class' => 'bbp-the-content', 1779 1733 'tinymce' => false, … … 1814 1768 'wpautop' => $r['wpautop'], 1815 1769 'media_buttons' => $r['media_buttons'], 1816 1770 'textarea_rows' => $r['textarea_rows'], 1817 'tabindex' => $r['tabindex'],1818 1771 'tabfocus_elements' => $r['tabfocus_elements'], 1819 1772 'editor_class' => $r['editor_class'], 1820 1773 'tinymce' => $r['tinymce'], … … 1837 1790 */ 1838 1791 else : ?> 1839 1792 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>1793 <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 $post_content; ?></textarea> 1841 1794 1842 1795 <?php endif; 1843 1796 -
src/includes/common/widgets.php
90 90 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> 105 105 … … 107 107 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(); ?> 113 113 -
src/includes/forums/template.php
2419 2419 * 2420 2420 * @param $args This function supports these arguments: 2421 2421 * - select_id: Select id. Defaults to bbp_forum_type 2422 * - tab: Tabindex2423 2422 * - forum_id: Forum id 2424 2423 * - selected: Override the selected option 2425 2424 * @uses bbp_get_form_forum_type() To get the topic's forum id … … 2434 2433 * 2435 2434 * @param $args This function supports these arguments: 2436 2435 * - select_id: Select id. Defaults to bbp_forum_type 2437 * - tab: Tabindex2438 2436 * - forum_id: Forum id 2439 2437 * - selected: Override the selected option 2440 2438 * @uses bbp_is_topic_edit() To check if it's the topic edit page … … 2455 2453 // Parse arguments against default values 2456 2454 $r = bbp_parse_args( $args, array( 2457 2455 'select_id' => 'bbp_forum_type', 2458 'tab' => bbp_get_tab_index(),2459 2456 'forum_id' => $forum_id, 2460 2457 'selected' => false 2461 2458 ), 'forum_type_select' ); … … 2482 2479 } 2483 2480 } 2484 2481 2485 // Used variables2486 $tab = ! empty( $r['tab'] ) ? ' tabindex="' . (int) $r['tab'] . '"' : '';2487 2488 2482 // Start an output buffer, we'll finish it after the select loop 2489 2483 ob_start(); ?> 2490 2484 2491 <select name="<?php echo esc_attr( $r['select_id'] ) ?>" id="<?php echo esc_attr( $r['select_id'] ) ?>_select" <?php echo $tab; ?>>2485 <select name="<?php echo esc_attr( $r['select_id'] ) ?>" id="<?php echo esc_attr( $r['select_id'] ) ?>_select"> 2492 2486 2493 2487 <?php foreach ( bbp_get_forum_types() as $key => $label ) : ?> 2494 2488 … … 2511 2505 * 2512 2506 * @param $args This function supports these arguments: 2513 2507 * - select_id: Select id. Defaults to bbp_forum_status 2514 * - tab: Tabindex2515 2508 * - forum_id: Forum id 2516 2509 * - selected: Override the selected option 2517 2510 * @uses bbp_get_form_forum_status() To get the topic's forum id … … 2526 2519 * 2527 2520 * @param $args This function supports these arguments: 2528 2521 * - select_id: Select id. Defaults to bbp_forum_status 2529 * - tab: Tabindex2530 2522 * - forum_id: Forum id 2531 2523 * - selected: Override the selected option 2532 2524 * @uses bbp_is_topic_edit() To check if it's the topic edit page … … 2547 2539 // Parse arguments against default values 2548 2540 $r = bbp_parse_args( $args, array( 2549 2541 'select_id' => 'bbp_forum_status', 2550 'tab' => bbp_get_tab_index(),2551 2542 'forum_id' => $forum_id, 2552 2543 'selected' => false 2553 2544 ), 'forum_status_select' ); … … 2574 2565 } 2575 2566 } 2576 2567 2577 // Used variables2578 $tab = ! empty( $r['tab'] ) ? ' tabindex="' . (int) $r['tab'] . '"' : '';2579 2580 2568 // Start an output buffer, we'll finish it after the select loop 2581 2569 ob_start(); ?> 2582 2570 2583 <select name="<?php echo esc_attr( $r['select_id'] ) ?>" id="<?php echo esc_attr( $r['select_id'] ) ?>_select" <?php echo $tab; ?>>2571 <select name="<?php echo esc_attr( $r['select_id'] ) ?>" id="<?php echo esc_attr( $r['select_id'] ) ?>_select"> 2584 2572 2585 2573 <?php foreach ( bbp_get_forum_statuses() as $key => $label ) : ?> 2586 2574 … … 2603 2591 * 2604 2592 * @param $args This function supports these arguments: 2605 2593 * - select_id: Select id. Defaults to bbp_forum_visibility 2606 * - tab: Tabindex2607 2594 * - forum_id: Forum id 2608 2595 * - selected: Override the selected option 2609 2596 * @uses bbp_get_form_forum_visibility() To get the topic's forum id … … 2618 2605 * 2619 2606 * @param $args This function supports these arguments: 2620 2607 * - select_id: Select id. Defaults to bbp_forum_visibility 2621 * - tab: Tabindex2622 2608 * - forum_id: Forum id 2623 2609 * - selected: Override the selected option 2624 2610 * @uses bbp_is_topic_edit() To check if it's the topic edit page … … 2639 2625 // Parse arguments against default values 2640 2626 $r = bbp_parse_args( $args, array( 2641 2627 'select_id' => 'bbp_forum_visibility', 2642 'tab' => bbp_get_tab_index(),2643 2628 'forum_id' => $forum_id, 2644 2629 'selected' => false 2645 2630 ), 'forum_type_select' ); … … 2666 2651 } 2667 2652 } 2668 2653 2669 // Used variables2670 $tab = ! empty( $r['tab'] ) ? ' tabindex="' . (int) $r['tab'] . '"' : '';2671 2672 2654 // Start an output buffer, we'll finish it after the select loop 2673 2655 ob_start(); ?> 2674 2656 2675 <select name="<?php echo esc_attr( $r['select_id'] ) ?>" id="<?php echo esc_attr( $r['select_id'] ) ?>_select" <?php echo $tab; ?>>2657 <select name="<?php echo esc_attr( $r['select_id'] ) ?>" id="<?php echo esc_attr( $r['select_id'] ) ?>_select"> 2676 2658 2677 2659 <?php foreach ( bbp_get_forum_visibilities() as $key => $label ) : ?> 2678 2660 -
src/includes/replies/template.php
2761 2761 * 2762 2762 * @param $args This function supports these arguments: 2763 2763 * - select_id: Select id. Defaults to bbp_reply_status 2764 * - tab: Tabindex2765 2764 * - reply_id: Reply id 2766 2765 * - selected: Override the selected option 2767 2766 */ … … 2779 2778 * 2780 2779 * @param $args This function supports these arguments: 2781 2780 * - select_id: Select id. Defaults to bbp_reply_status 2782 * - tab: Tabindex2783 2781 * - reply_id: Reply id 2784 2782 * - selected: Override the selected option 2785 2783 */ … … 2788 2786 // Parse arguments against default values 2789 2787 $r = bbp_parse_args( $args, array( 2790 2788 'select_id' => 'bbp_reply_status', 2791 'tab' => bbp_get_tab_index(),2792 2789 'reply_id' => 0, 2793 2790 'selected' => false 2794 2791 ), 'reply_status_dropdown' ); … … 2815 2812 } 2816 2813 } 2817 2814 2818 // Used variables2819 $tab = ! empty( $r['tab'] ) ? ' tabindex="' . (int) $r['tab'] . '"' : '';2820 2821 2815 // Start an output buffer, we'll finish it after the select loop 2822 2816 ob_start(); ?> 2823 2817 2824 <select name="<?php echo esc_attr( $r['select_id'] ) ?>" id="<?php echo esc_attr( $r['select_id'] ); ?>_select" <?php echo $tab; ?>>2818 <select name="<?php echo esc_attr( $r['select_id'] ) ?>" id="<?php echo esc_attr( $r['select_id'] ); ?>_select"> 2825 2819 2826 2820 <?php foreach ( bbp_get_reply_statuses( $r['reply_id'] ) as $key => $label ) : ?> 2827 2821 -
src/includes/topics/template.php
3213 3213 * 3214 3214 * @param $args This function supports these arguments: 3215 3215 * - select_id: Select id. Defaults to bbp_stick_topic 3216 * - tab: Tabindex3217 3216 * - topic_id: Topic id 3218 3217 * - selected: Override the selected option 3219 3218 */ … … 3228 3227 * 3229 3228 * @param $args This function supports these arguments: 3230 3229 * - select_id: Select id. Defaults to bbp_stick_topic 3231 * - tab: Tabindex3232 3230 * - topic_id: Topic id 3233 3231 * - selected: Override the selected option 3234 3232 */ … … 3242 3240 * 3243 3241 * @param $args This function supports these arguments: 3244 3242 * - select_id: Select id. Defaults to bbp_stick_topic 3245 * - tab: Tabindex3246 3243 * - topic_id: Topic id 3247 3244 * - selected: Override the selected option 3248 3245 * @uses bbp_get_topic_id() To get the topic id … … 3256 3253 // Parse arguments against default values 3257 3254 $r = bbp_parse_args( $args, array( 3258 3255 'select_id' => 'bbp_stick_topic', 3259 'tab' => bbp_get_tab_index(),3260 3256 'topic_id' => 0, 3261 3257 'selected' => false 3262 3258 ), 'topic_type_select' ); … … 3289 3285 } 3290 3286 } 3291 3287 3292 // Used variables3293 $tab = ! empty( $r['tab'] ) ? ' tabindex="' . (int) $r['tab'] . '"' : '';3294 3295 3288 // Start an output buffer, we'll finish it after the select loop 3296 3289 ob_start(); ?> 3297 3290 3298 <select name="<?php echo esc_attr( $r['select_id'] ); ?>" id="<?php echo esc_attr( $r['select_id'] ); ?>_select" <?php echo $tab; ?>>3291 <select name="<?php echo esc_attr( $r['select_id'] ); ?>" id="<?php echo esc_attr( $r['select_id'] ); ?>_select"> 3299 3292 3300 3293 <?php foreach ( bbp_get_topic_types() as $key => $label ) : ?> 3301 3294 … … 3318 3311 * 3319 3312 * @param $args This function supports these arguments: 3320 3313 * - select_id: Select id. Defaults to bbp_topic_status 3321 * - tab: Tabindex3322 3314 * - topic_id: Topic id 3323 3315 * - selected: Override the selected option 3324 3316 */ … … 3336 3328 * 3337 3329 * @param $args This function supports these arguments: 3338 3330 * - select_id: Select id. Defaults to bbp_topic_status 3339 * - tab: Tabindex3340 3331 * - topic_id: Topic id 3341 3332 * - selected: Override the selected option 3342 3333 */ … … 3345 3336 // Parse arguments against default values 3346 3337 $r = bbp_parse_args( $args, array( 3347 3338 'select_id' => 'bbp_topic_status', 3348 'tab' => bbp_get_tab_index(),3349 3339 'topic_id' => 0, 3350 3340 'selected' => false 3351 3341 ), 'topic_open_close_select' ); … … 3372 3362 } 3373 3363 } 3374 3364 3375 // Used variables3376 $tab = ! empty( $r['tab'] ) ? ' tabindex="' . (int) $r['tab'] . '"' : '';3377 3365 3378 3366 // Start an output buffer, we'll finish it after the select loop 3379 3367 ob_start(); ?> 3380 3368 3381 <select name="<?php echo esc_attr( $r['select_id'] ) ?>" id="<?php echo esc_attr( $r['select_id'] ); ?>_select" <?php echo $tab; ?>>3369 <select name="<?php echo esc_attr( $r['select_id'] ) ?>" id="<?php echo esc_attr( $r['select_id'] ); ?>_select"> 3382 3370 3383 3371 <?php foreach ( bbp_get_topic_statuses( $r['topic_id'] ) as $key => $label ) : ?> 3384 3372 -
src/templates/default/bbpress/form-anonymous.php
20 20 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 36 36 <?php do_action( 'bbp_theme_anonymous_form_extras_bottom' ); ?> -
src/templates/default/bbpress/form-forum.php
65 65 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 71 71 <?php do_action( 'bbp_theme_after_forum_form_title' ); ?> … … 135 135 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' ); ?> 141 141 -
src/templates/default/bbpress/form-reply-move.php
37 37 <legend><?php _e( 'Move Method', 'bbpress' ); ?></legend> 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 45 45 <?php if ( bbp_has_topics( array( 'show_stickies' => false, 'post_parent' => bbp_get_reply_forum_id( bbp_get_reply_id() ), 'post__not_in' => array( bbp_get_reply_topic_id( bbp_get_reply_id() ) ) ) ) ) : ?> 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 51 51 <?php … … 69 69 </div> 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> 75 75 -
src/templates/default/bbpress/form-reply.php
73 73 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 79 79 <?php do_action( 'bbp_theme_after_reply_form_tags' ); ?> … … 86 86 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() ) ) : ?> 92 92 … … 134 134 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> 140 140 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> 146 146 … … 158 158 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' ); ?> 164 164 -
src/templates/default/bbpress/form-search.php
13 13 <div> 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> -
src/templates/default/bbpress/form-topic-merge.php
68 68 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 84 84 <?php endif; ?> … … 91 91 </div> 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> 97 97 -
src/templates/default/bbpress/form-topic-split.php
37 37 <legend><?php _e( 'Split Method', 'bbpress' ); ?></legend> 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 45 45 <?php if ( bbp_has_topics( array( 'show_stickies' => false, 'post_parent' => bbp_get_topic_forum_id( bbp_get_topic_id() ), 'post__not_in' => array( bbp_get_topic_id() ) ) ) ) : ?> 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 51 51 <?php … … 72 72 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 88 88 <?php endif; ?> … … 95 95 </div> 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> 101 101 -
src/templates/default/bbpress/form-topic-tag.php
33 33 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(); ?>" /> 53 53 <input type="hidden" name="action" value="bbp-update-topic-tag" /> … … 71 71 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(); ?>" /> 81 81 <input type="hidden" name="action" value="bbp-merge-topic-tag" /> … … 103 103 <form id="delete_tag" name="delete_tag" method="post" action="<?php the_permalink(); ?>"> 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(); ?>" /> 109 109 <input type="hidden" name="action" value="bbp-delete-topic-tag" /> -
src/templates/default/bbpress/form-topic.php
76 76 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 82 82 <?php do_action( 'bbp_theme_after_topic_form_title' ); ?> … … 102 102 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 108 108 <?php do_action( 'bbp_theme_after_topic_form_tags' ); ?> … … 160 160 <?php do_action( 'bbp_theme_before_topic_form_subscriptions' ); ?> 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() ) ) : ?> 166 166 … … 183 183 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> 189 189 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> 195 195 … … 203 203 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' ); ?> 209 209 -
src/templates/default/bbpress/form-user-edit.php
22 22 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 38 38 <div> … … 55 55 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 61 61 <?php foreach ( bbp_edit_user_contact_methods() as $name => $desc ) : ?> 62 62 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 68 68 <?php endforeach; ?> … … 80 80 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 86 86 <?php do_action( 'bbp_user_edit_after_about' ); ?> … … 96 96 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 102 102 <div> 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 108 108 … … 123 123 <div id="password"> 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 132 132 <div id="pass-strength-result"></div> … … 152 152 <div> 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> 158 158 </div> … … 175 175 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> 181 181 -
src/templates/default/bbpress/form-user-login.php
15 15 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> 30 30 … … 32 32 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(); ?> 38 38 -
src/templates/default/bbpress/form-user-lost-pass.php
16 16 <div class="bbp-username"> 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> 22 22 … … 24 24 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(); ?> 30 30 -
src/templates/default/bbpress/form-user-register.php
22 22 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 33 33 <?php do_action( 'register_form' ); ?> 34 34 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(); ?> 40 40