Ticket #2392: 2392.2.diff
File 2392.2.diff, 2.9 KB (added by , 11 years ago) |
---|
-
includes/admin/settings.php
516 516 // Start the output buffer for the select dropdown 517 517 ob_start(); ?> 518 518 519 <select name="_bbp_default_role" id="_bbp_default_role" <?php bbp_maybe_admin_setting_disabled( '_bbp_default_role' ); ?>> 519 </label> 520 <label for="_bbp_default_role"> 521 <select name="_bbp_default_role" id="_bbp_default_role" <?php bbp_maybe_admin_setting_disabled( '_bbp_default_role' ); ?>> 520 522 521 <?php foreach ( bbp_get_dynamic_roles() as $role => $details ) : ?>523 <?php foreach ( bbp_get_dynamic_roles() as $role => $details ) : ?> 522 524 523 <option <?php selected( $default_role, $role ); ?> value="<?php echo esc_attr( $role ); ?>"><?php echo translate_user_role( $details['name'] ); ?></option>525 <option <?php selected( $default_role, $role ); ?> value="<?php echo esc_attr( $role ); ?>"><?php echo translate_user_role( $details['name'] ); ?></option> 524 526 525 <?php endforeach; ?>527 <?php endforeach; ?> 526 528 527 </select> 529 </select> 530 </label> 528 531 529 532 <?php $select = ob_get_clean(); ?> 530 533 … … 531 534 <label for="_bbp_allow_global_access"> 532 535 <input name="_bbp_allow_global_access" id="_bbp_allow_global_access" type="checkbox" value="1" <?php checked( bbp_allow_global_access( true ) ); bbp_maybe_admin_setting_disabled( '_bbp_allow_global_access' ); ?> /> 533 536 <?php printf( esc_html__( 'Automatically give registered visitors the %s forum role', 'bbpress' ), $select ); ?> 534 </label>535 537 536 538 <?php 537 539 } … … 635 637 // Start an output buffer for the select dropdown 636 638 ob_start(); ?> 637 639 638 <select name="_bbp_thread_replies_depth" id="_bbp_thread_replies_depth" <?php bbp_maybe_admin_setting_disabled( '_bbp_thread_replies_depth' ); ?>> 639 <?php for ( $i = 2; $i <= $max_depth; $i++ ) : ?> 640 </label> 641 <label for="_bbp_thread_replies_depth"> 642 <select name="_bbp_thread_replies_depth" id="_bbp_thread_replies_depth" <?php bbp_maybe_admin_setting_disabled( '_bbp_thread_replies_depth' ); ?>> 643 <?php for ( $i = 2; $i <= $max_depth; $i++ ) : ?> 640 644 641 <option value="<?php echo esc_attr( $i ); ?>" <?php selected( $i, $current_depth ); ?>><?php echo esc_html( $i ); ?></option>645 <option value="<?php echo esc_attr( $i ); ?>" <?php selected( $i, $current_depth ); ?>><?php echo esc_html( $i ); ?></option> 642 646 643 <?php endfor; ?> 644 </select> 647 <?php endfor; ?> 648 </select> 649 </label> 645 650 646 651 <?php $select = ob_get_clean(); ?> 647 652 … … 648 653 <label for="_bbp_allow_threaded_replies"> 649 654 <input name="_bbp_allow_threaded_replies" id="_bbp_allow_threaded_replies" type="checkbox" value="1" <?php checked( '1', bbp_allow_threaded_replies( false ) ); bbp_maybe_admin_setting_disabled( '_bbp_allow_threaded_replies' ); ?> /> 650 655 <?php printf( esc_html__( 'Enable threaded (nested) replies %s levels deep', 'bbpress' ), $select ); ?> 651 </label>652 656 653 657 <?php 654 658 }