Skip to:
Content

bbPress.org

Ticket #2392: 2392.patch

File 2392.patch, 2.6 KB (added by alex-ye, 10 years ago)
  • includes/admin/settings.php

     
    115115                                'title'             => __( 'Auto role', 'bbpress' ),
    116116                                'callback'          => 'bbp_admin_setting_callback_global_access',
    117117                                'sanitize_callback' => 'intval',
    118                                 'args'              => array()
     118                                'args'              => array(
     119                                    'label_for' => '_bbp_allow_global_access',
     120                                )
    119121                        ),
    120122
    121123                        // Allow global access (on multisite)
     
    190192                                'title'             => __( 'Reply Threading', 'bbpress' ),
    191193                                'callback'          => 'bbp_admin_setting_callback_thread_replies_depth',
    192194                                'sanitize_callback' => 'intval',
    193                                 'args'              => array()
     195                                'args'              => array(
     196                                    'label_for' => '_bbp_thread_replies_depth',
     197                                )
    194198                        ),
    195199
    196200                        // Allow threadde replies
     
    528532
    529533        <?php $select = ob_get_clean(); ?>
    530534
    531         <label for="_bbp_allow_global_access">
    532                 <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                 <?php printf( esc_html__( 'Automatically give registered visitors the %s forum role', 'bbpress' ), $select ); ?>
    534         </label>
     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' ); ?> />
     536        <?php printf( esc_html__( 'Automatically give registered visitors the %s forum role', 'bbpress' ), $select ); ?>
    535537
    536538<?php
    537539}
     
    645647
    646648        <?php $select = ob_get_clean(); ?>
    647649
    648         <label for="_bbp_allow_threaded_replies">
    649                 <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                 <?php printf( esc_html__( 'Enable threaded (nested) replies %s levels deep', 'bbpress' ), $select ); ?>
    651         </label>
     650        <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' ); ?> />
     651        <?php printf( esc_html__( 'Enable threaded (nested) replies %s levels deep', 'bbpress' ), $select ); ?>
    652652
    653653<?php
    654654}