Changeset 9828 for trunk/src/bp-core/bp-core-admin.php
- Timestamp:
- 05/02/2015 01:01:03 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-admin.php
r9819 r9828 338 338 add_settings_section( 'bp_xprofile', _x( 'Profile Settings', 'BuddyPress setting tab', 'buddypress' ), 'bp_admin_setting_callback_xprofile_section', 'buddypress' ); 339 339 340 $avatar_setting = 'bp_xprofile'; 340 add_settings_field( 'bp-disable-avatar-uploads', __( 'Profile Photo Uploads', 'buddypress' ), 'bp_admin_setting_callback_avatar_uploads', 'buddypress', 'bp_xprofile' ); 341 register_setting( 'buddypress', 'bp-disable-avatar-uploads', 'intval' ); 341 342 342 343 // Profile sync setting … … 352 353 add_settings_section( 'bp_groups', __( 'Groups Settings', 'buddypress' ), 'bp_admin_setting_callback_groups_section', 'buddypress' ); 353 354 354 if ( empty( $avatar_setting ) ) {355 $avatar_setting = 'bp_groups';356 }357 358 355 // Allow subscriptions setting 359 356 add_settings_field( 'bp_restrict_group_creation', __( 'Group Creation', 'buddypress' ), 'bp_admin_setting_callback_group_creation', 'buddypress', 'bp_groups' ); 360 357 register_setting ( 'buddypress', 'bp_restrict_group_creation', 'intval' ); 358 359 // Allow group avatars. 360 add_settings_field( 'bp-disable-group-avatar-uploads', __( 'Group Photo Uploads', 'buddypress' ), 'bp_admin_setting_callback_group_avatar_uploads', 'buddypress', 'bp_groups' ); 361 register_setting( 'buddypress', 'bp-disable-group-avatar-uploads', 'intval' ); 361 362 } 362 363 … … 393 394 register_setting ( 'buddypress', '_bp_enable_akismet', 'intval' ); 394 395 } 395 }396 397 /** Avatar upload for users or groups ************************************/398 399 if ( ! empty( $avatar_setting ) ) {400 // Allow avatar uploads401 add_settings_field( 'bp-disable-avatar-uploads', __( 'Profile Photo Uploads', 'buddypress' ), 'bp_admin_setting_callback_avatar_uploads', 'buddypress', $avatar_setting );402 register_setting ( 'buddypress', 'bp-disable-avatar-uploads', 'intval' );403 396 } 404 397 }
Note: See TracChangeset
for help on using the changeset viewer.