Ticket #2632: 2632.diff
File 2632.diff, 9.2 KB (added by , 9 years ago) |
---|
-
src/includes/admin/metaboxes.php
28 28 $text = sprintf( _n( '%d Forum', '%d Forums', $r['forum_count'], 'bbpress' ), $r['forum_count'] ); 29 29 $elements[] = '<a href="' . esc_url( $link ) . '" class="bbp-glance-forums">' . esc_html( $text ) . '</a>'; 30 30 } 31 31 32 32 // Topics 33 33 if ( current_user_can( 'publish_topics' ) ) { 34 34 $link = add_query_arg( array( 'post_type' => bbp_get_topic_post_type() ), get_admin_url( null, 'edit.php' ) ); … … 343 343 344 344 <p> 345 345 <strong class="label"><?php esc_html_e( 'Parent:', 'bbpress' ); ?></strong> 346 <label class="screen-reader-text" for=" parent_id"><?php esc_html_e( 'Forum Parent', 'bbpress' ); ?></label>346 <label class="screen-reader-text" for="bbp_forum_parent_id_select"><?php esc_html_e( 'Forum Parent', 'bbpress' ); ?></label> 347 347 <?php bbp_dropdown( array( 348 348 'post_type' => bbp_get_forum_post_type(), 349 349 'selected' => $post_parent, … … 354 354 'exclude' => $post_id, 355 355 356 356 // Output-related 357 'select_id' => ' parent_id',357 'select_id' => 'bbp_forum_parent_id_select', 358 358 'tab' => bbp_get_tab_index(), 359 359 'options_only' => false, 360 360 'show_none' => __( '— No parent —', 'bbpress' ), … … 399 399 400 400 <p> 401 401 <strong class="label"><?php esc_html_e( 'Type:', 'bbpress' ); ?></strong> 402 <label class="screen-reader-text" for="bbp_stick_topic "><?php esc_html_e( 'Topic Type', 'bbpress' ); ?></label>402 <label class="screen-reader-text" for="bbp_stick_topic_select"><?php esc_html_e( 'Topic Type', 'bbpress' ); ?></label> 403 403 <?php bbp_form_topic_type_dropdown( array( 'topic_id' => $post_id ) ); ?> 404 404 </p> 405 405 … … 411 411 412 412 <p> 413 413 <strong class="label"><?php esc_html_e( 'Status:', 'bbpress' ); ?></strong> 414 <label class="screen-reader-text" for="bbp_ open_close_topic"><?php esc_html_e( 'Select whether to open or close the topic.', 'bbpress' ); ?></label>415 <?php bbp_form_topic_status_dropdown( array( ' select_id' => 'post_status', 'topic_id' => $post_id ) ); ?>414 <label class="screen-reader-text" for="bbp_topic_status_select"><?php esc_html_e( 'Select what status to give the topic.', 'bbpress' ); ?></label> 415 <?php bbp_form_topic_status_dropdown( array( 'topic_id' => $post_id ) ); ?> 416 416 </p> 417 417 418 418 <?php … … 425 425 426 426 <p> 427 427 <strong class="label"><?php esc_html_e( 'Forum:', 'bbpress' ); ?></strong> 428 <label class="screen-reader-text" for=" parent_id"><?php esc_html_e( 'Forum', 'bbpress' ); ?></label>428 <label class="screen-reader-text" for="bbp_topic_forum_select"><?php esc_html_e( 'Forum', 'bbpress' ); ?></label> 429 429 <?php bbp_dropdown( array( 430 430 'post_type' => bbp_get_forum_post_type(), 431 431 'selected' => bbp_get_topic_forum_id( $post_id ), … … 436 436 'exclude' => '', 437 437 438 438 // Output-related 439 'select_id' => ' parent_id',439 'select_id' => 'bbp_topic_forum_select', 440 440 'tab' => bbp_get_tab_index(), 441 441 'options_only' => false, 442 442 'show_none' => __( '— No parent —', 'bbpress' ), … … 480 480 481 481 <p> 482 482 <strong class="label"><?php esc_html_e( 'Status:', 'bbpress' ); ?></strong> 483 <label class="screen-reader-text" for=" post_status"><?php esc_html_e( 'Select what status to give the reply.', 'bbpress' ); ?></label>484 <?php bbp_form_reply_status_dropdown( array( ' select_id' => 'post_status', 'reply_id' => $post_id ) ); ?>483 <label class="screen-reader-text" for="bbp_reply_status_select"><?php esc_html_e( 'Select what status to give the reply.', 'bbpress' ); ?></label> 484 <?php bbp_form_reply_status_dropdown( array( 'reply_id' => $post_id ) ); ?> 485 485 </p> 486 486 487 487 <hr /> … … 495 495 496 496 <p> 497 497 <strong class="label"><?php esc_html_e( 'Forum:', 'bbpress' ); ?></strong> 498 <label class="screen-reader-text" for="bbp_ forum_id"><?php esc_html_e( 'Forum', 'bbpress' ); ?></label>498 <label class="screen-reader-text" for="bbp_reply_forum_select"><?php esc_html_e( 'Forum', 'bbpress' ); ?></label> 499 499 <?php bbp_dropdown( array( 500 500 'post_type' => bbp_get_forum_post_type(), 501 501 'selected' => $reply_forum_id, … … 506 506 'exclude' => '', 507 507 508 508 // Output-related 509 'select_id' => 'bbp_ forum_id',509 'select_id' => 'bbp_reply_forum_select', 510 510 'tab' => bbp_get_tab_index(), 511 511 'options_only' => false, 512 512 'show_none' => __( '— No parent —', 'bbpress' ), … … 523 523 524 524 <p> 525 525 <strong class="label"><?php esc_html_e( 'Topic:', 'bbpress' ); ?></strong> 526 <label class="screen-reader-text" for=" parent_id"><?php esc_html_e( 'Topic', 'bbpress' ); ?></label>526 <label class="screen-reader-text" for="bbp_topic_id"><?php esc_html_e( 'Topic', 'bbpress' ); ?></label> 527 527 <input name="parent_id" id="bbp_topic_id" type="text" value="<?php echo esc_attr( $reply_topic_id ); ?>" /> 528 528 </p> 529 529 … … 535 535 536 536 <p> 537 537 <strong class="label"><?php esc_html_e( 'Reply To:', 'bbpress' ); ?></strong> 538 <label class="screen-reader-text" for="bbp_reply_to "><?php esc_html_e( 'Reply To', 'bbpress' ); ?></label>538 <label class="screen-reader-text" for="bbp_reply_to_select"><?php esc_html_e( 'Reply To', 'bbpress' ); ?></label> 539 539 <?php bbp_reply_to_dropdown( $post_id ); ?> 540 540 </p> 541 541 -
src/includes/replies/template.php
2541 2541 // Get the dropdown and return it 2542 2542 $retval = bbp_get_dropdown( array( 2543 2543 'show_none' => sprintf( esc_attr__( '%1$s - %2$s', 'bbpress' ), $topic_id, bbp_get_topic_title( $topic_id ) ), 2544 'select_id' => 'bbp_reply_to ',2544 'select_id' => 'bbp_reply_to_select', 2545 2545 'exclude' => $reply_id, 2546 2546 'selected' => $reply_to, 2547 2547 'post_parent' => $topic_id, -
src/templates/default/bbpress/form-forum.php
88 88 <?php do_action( 'bbp_theme_before_forum_form_type' ); ?> 89 89 90 90 <p> 91 <label for="bbp_forum_type "><?php _e( 'Forum Type:', 'bbpress' ); ?></label><br />91 <label for="bbp_forum_type_select"><?php _e( 'Forum Type:', 'bbpress' ); ?></label><br /> 92 92 <?php bbp_form_forum_type_dropdown(); ?> 93 93 </p> 94 94 … … 97 97 <?php do_action( 'bbp_theme_before_forum_form_status' ); ?> 98 98 99 99 <p> 100 <label for="bbp_forum_status "><?php _e( 'Status:', 'bbpress' ); ?></label><br />100 <label for="bbp_forum_status_select"><?php _e( 'Status:', 'bbpress' ); ?></label><br /> 101 101 <?php bbp_form_forum_status_dropdown(); ?> 102 102 </p> 103 103 … … 106 106 <?php do_action( 'bbp_theme_before_forum_visibility_status' ); ?> 107 107 108 108 <p> 109 <label for="bbp_forum_visibility "><?php _e( 'Visibility:', 'bbpress' ); ?></label><br />109 <label for="bbp_forum_visibility_select"><?php _e( 'Visibility:', 'bbpress' ); ?></label><br /> 110 110 <?php bbp_form_forum_visibility_dropdown(); ?> 111 111 </p> 112 112 … … 115 115 <?php do_action( 'bbp_theme_before_forum_form_parent' ); ?> 116 116 117 117 <p> 118 <label for="bbp_forum_parent_id "><?php _e( 'Parent Forum:', 'bbpress' ); ?></label><br />118 <label for="bbp_forum_parent_id_select"><?php _e( 'Parent Forum:', 'bbpress' ); ?></label><br /> 119 119 120 120 <?php 121 121 bbp_dropdown( array( 122 'select_id' => 'bbp_forum_parent_id ',122 'select_id' => 'bbp_forum_parent_id_select', 123 123 'show_none' => __( '(No Parent)', 'bbpress' ), 124 124 'selected' => bbp_get_form_forum_parent(), 125 125 'exclude' => bbp_get_forum_id() -
src/templates/default/bbpress/form-topic.php
111 111 <?php do_action( 'bbp_theme_before_topic_form_forum' ); ?> 112 112 113 113 <p> 114 <label for="bbp_forum_id "><?php _e( 'Forum:', 'bbpress' ); ?></label><br />114 <label for="bbp_forum_id_select"><?php _e( 'Forum:', 'bbpress' ); ?></label><br /> 115 115 <?php 116 116 bbp_dropdown( array( 117 'select_id' => 'bbp_forum_id_select', 117 118 'show_none' => __( '(No Forum)', 'bbpress' ), 118 119 'selected' => bbp_get_form_topic_forum() 119 120 ) ); … … 130 131 131 132 <p> 132 133 133 <label for="bbp_stick_topic "><?php _e( 'Topic Type:', 'bbpress' ); ?></label><br />134 <label for="bbp_stick_topic_select"><?php _e( 'Topic Type:', 'bbpress' ); ?></label><br /> 134 135 135 136 <?php bbp_form_topic_type_dropdown(); ?> 136 137 … … 142 143 143 144 <p> 144 145 145 <label for="bbp_topic_status "><?php _e( 'Topic Status:', 'bbpress' ); ?></label><br />146 <label for="bbp_topic_status_select"><?php _e( 'Topic Status:', 'bbpress' ); ?></label><br /> 146 147 147 148 <?php bbp_form_topic_status_dropdown(); ?> 148 149