Changeset 10152 for trunk/src/bp-core/bp-core-admin.php
- Timestamp:
- 09/29/2015 10:03:53 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-admin.php
r10108 r10152 339 339 add_settings_section( 'bp_xprofile', _x( 'Profile Settings', 'BuddyPress setting tab', 'buddypress' ), 'bp_admin_setting_callback_xprofile_section', 'buddypress' ); 340 340 341 // Avatars 341 342 add_settings_field( 'bp-disable-avatar-uploads', __( 'Profile Photo Uploads', 'buddypress' ), 'bp_admin_setting_callback_avatar_uploads', 'buddypress', 'bp_xprofile' ); 342 343 register_setting( 'buddypress', 'bp-disable-avatar-uploads', 'intval' ); 344 345 // Cover images 346 if ( bp_is_active( 'xprofile', 'cover_image' ) ) { 347 add_settings_field( 'bp-disable-cover-image-uploads', __( 'Cover Image Uploads', 'buddypress' ), 'bp_admin_setting_callback_cover_image_uploads', 'buddypress', 'bp_xprofile' ); 348 register_setting( 'buddypress', 'bp-disable-cover-image-uploads', 'intval' ); 349 } 343 350 344 351 // Profile sync setting … … 361 368 add_settings_field( 'bp-disable-group-avatar-uploads', __( 'Group Photo Uploads', 'buddypress' ), 'bp_admin_setting_callback_group_avatar_uploads', 'buddypress', 'bp_groups' ); 362 369 register_setting( 'buddypress', 'bp-disable-group-avatar-uploads', 'intval' ); 370 371 // Allow group cover images. 372 if ( bp_is_active( 'groups', 'cover_image' ) ) { 373 add_settings_field( 'bp-disable-group-cover-image-uploads', __( 'Group Cover Image Uploads', 'buddypress' ), 'bp_admin_setting_callback_group_cover_image_uploads', 'buddypress', 'bp_groups' ); 374 register_setting( 'buddypress', 'bp-disable-group-cover-image-uploads', 'intval' ); 375 } 363 376 } 364 377
Note: See TracChangeset
for help on using the changeset viewer.