Ticket #3661: 3661.02.patch
| File 3661.02.patch, 2.3 KB (added by , 14 years ago) |
|---|
-
bp-core/admin/bp-core-settings.php
function bp_admin_setting_callback_account_deletion() { 49 49 <?php 50 50 } 51 51 52 /** 53 * If user has upgraded to 1.6 and chose to retain their BuddyBar, offer then a switch to change over 54 * to the WP Toolbar. 55 * 56 * @since BuddyPress (1.6) 57 */ 58 function bp_admin_setting_callback_force_buddybar() { 59 ?> 60 61 <input id="_bp_force_buddybar" name="_bp_force_buddybar" type="checkbox" value="1" <?php checked( ! bp_force_buddybar( false ) ); ?> /> 62 <label for="_bp_force_buddybar"><?php _e( 'Switch to WordPress Toolbar', 'buddypress' ); ?></label> 63 64 <?php 65 } 66 52 67 /** Activity *******************************************************************/ 53 68 54 69 /** -
bp-core/bp-core-admin.php
class BP_Admin { 286 286 add_settings_field( 'hide-loggedout-adminbar', __( 'Toolbar', 'buddypress' ), 'bp_admin_setting_callback_admin_bar', 'buddypress', 'bp_main' ); 287 287 register_setting ( 'buddypress', 'hide-loggedout-adminbar', 'intval' ); 288 288 289 // Allow favorites setting289 // Allow account deletion 290 290 add_settings_field( 'bp-disable-account-deletion', __( 'Account Deletion', 'buddypress' ), 'bp_admin_setting_callback_account_deletion', 'buddypress', 'bp_main' ); 291 291 register_setting ( 'buddypress', 'bp-disable-account-deletion', 'intval' ); 292 292 293 // Only show 'switch to Toolbar' option if the user chose to retain the BuddyBar during the 1.6 upgrade 294 if ( (bool) bp_get_option( '_bp_force_buddybar', true ) ) { 295 add_settings_field( '_bp_force_buddybar', __( 'Toolbar', 'buddypress' ), 'bp_admin_setting_callback_force_buddybar', 'buddypress', 'bp_main' ); 296 register_setting( 'buddypress', '_bp_force_buddybar', 'intval' ); 297 } 298 293 299 /** XProfile Section **************************************************/ 294 300 295 301 if ( bp_is_active( 'xprofile' ) ) {
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)