Skip to:
Content

BuddyPress.org

Ticket #7810: patch.diff

File patch.diff, 1.6 KB (added by Ankit K Gupta, 6 years ago)

added patch file

  • src/bp-core/admin/bp-core-admin-settings.php

     
    7171
    7272        if ( $options ) : ?>
    7373                <select name="_bp_theme_package_id" id="_bp_theme_package_id"><?php echo $options; ?></select>
    74                 <p class="description"><label for="_bp_theme_package_id"><?php esc_html_e( 'The selected Template Pack will serve all BuddyPress templates.', 'buddypress' ); ?></label></p>
     74                <p class="description"><?php esc_html_e( 'The selected Template Pack will serve all BuddyPress templates.', 'buddypress' ); ?></p>
    7575
    7676        <?php else : ?>
    7777                <p><?php esc_html_e( 'No template packages available.', 'buddypress' ); ?></p>
  • src/bp-core/classes/class-bp-admin.php

     
    388388                register_setting( 'buddypress', 'bp-disable-account-deletion', 'intval' );
    389389
    390390                // Template pack picker.
    391                 add_settings_field( '_bp_theme_package_id', __( 'Template Pack', 'buddypress' ), 'bp_admin_setting_callback_theme_package_id', 'buddypress', 'bp_main' );
     391                add_settings_field( '_bp_theme_package_id', __( 'Template Pack', 'buddypress' ), 'bp_admin_setting_callback_theme_package_id', 'buddypress', 'bp_main', array( 'label_for' => '_bp_theme_package_id' ) );
    392392                register_setting( 'buddypress', '_bp_theme_package_id', 'sanitize_text_field' );
    393393
    394394                /* XProfile Section **************************************************/