Changeset 5885 for trunk/bp-core/bp-core-admin.php
- Timestamp:
- 03/05/2012 06:17:43 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-admin.php
r5868 r5885 307 307 add_settings_section( 'bp_main', __( 'Main Settings', 'buddypress' ), 'bp_admin_setting_callback_main_section', 'buddypress' ); 308 308 309 // Edit lock setting310 add_settings_field( '_bp_profile_sync', __( 'Profile Syncing', 'buddypress' ), 'bp_admin_setting_callback_profile_sync', 'buddypress', 'bp_main' );311 register_setting ( 'buddypress', '_bp_profile_sync', 'intval' );312 313 309 // Throttle setting 314 310 add_settings_field( '_bp_admin_bar', __( 'Toolbar', 'buddypress' ), 'bp_admin_setting_callback_admin_bar', 'buddypress', 'bp_main' ); 315 311 register_setting ( 'buddypress', '_bp_admin_bar', 'intval' ); 316 312 317 // Allow topic and reply revisions318 add_settings_field( '_bp_avatar_uploads', __( 'Avatar Uploads', 'buddypress' ), 'bp_admin_setting_callback_avatar_uploads', 'buddypress', 'bp_main' );319 register_setting ( 'buddypress', '_bp_avatar_uploads', 'intval' );320 321 313 // Allow favorites setting 322 314 add_settings_field( '_bp_account_deletion', __( 'Account Deletion', 'buddypress' ), 'bp_admin_setting_callback_account_deletion', 'buddypress', 'bp_main' ); 323 315 register_setting ( 'buddypress', '_bp_account_deletion', 'intval' ); 324 316 325 // Allow global access setting 326 if ( function_exists( 'wp_editor' ) ) { 327 add_settings_field( '_bp_use_wp_editor', __( 'Fancy Editor', 'buddypress' ), 'bp_admin_setting_callback_use_wp_editor', 'buddypress', 'bp_main' ); 328 register_setting ( 'buddypress', '_bp_use_wp_editor', 'intval' ); 317 /** XProfile Section **************************************************/ 318 319 if ( bp_is_active( 'xprofile' ) ) { 320 321 // Add the main section 322 add_settings_section( 'bp_xprofile', __( 'Profile Settings', 'buddypress' ), 'bp_admin_setting_callback_xprofile_section', 'buddypress' ); 323 324 // Allow topic and reply revisions 325 add_settings_field( '_bp_avatar_uploads', __( 'Avatar Uploads', 'buddypress' ), 'bp_admin_setting_callback_avatar_uploads', 'buddypress', 'bp_xprofile' ); 326 register_setting ( 'buddypress', '_bp_avatar_uploads', 'intval' ); 327 328 // Profile sync setting 329 add_settings_field( '_bp_profile_sync', __( 'Profile Syncing', 'buddypress' ), 'bp_admin_setting_callback_profile_sync', 'buddypress', 'bp_xprofile' ); 330 register_setting ( 'buddypress', '_bp_profile_sync', 'intval' ); 329 331 } 330 332 331 333 /** Groups Section ****************************************************/ 332 334 333 // @todo move into groups component334 335 if ( bp_is_active( 'groups' ) ) { 335 336 … … 339 340 // Allow subscriptions setting 340 341 add_settings_field( '_bp_group_creation', __( 'Group Creation', 'buddypress' ), 'bp_admin_setting_callback_group_creation', 'buddypress', 'bp_groups' ); 341 register_setting ( 'buddypress', '_bp_group_creation', 'intval' ); 342 register_setting ( 'buddypress', '_bp_group_creation', 'intval' ); 343 } 344 345 /** Forums ************************************************************/ 346 347 if ( bp_is_active( 'forums' ) && bp_forums_is_installed_correctly() ) { 348 349 // Add the main section 350 add_settings_section( 'bp_forums', __( 'Forums Settings', 'buddypress' ), 'bp_admin_setting_callback_bbpress_section', 'buddypress' ); 351 352 // Allow subscriptions setting 353 add_settings_field( 'bb-config-location', __( 'bbPress Configuration', 'buddypress' ), 'bp_admin_setting_callback_bbpress_configuration', 'buddypress', 'bp_forums' ); 354 register_setting ( 'buddypress', 'bb-config-location', '' ); 342 355 } 343 356 344 357 /** Activity Section **************************************************/ 345 358 346 // @todo move into activity component347 359 if ( bp_is_active( 'activity' ) && ( is_plugin_active( 'akismet/akismet.php' ) && defined( 'AKISMET_VERSION' ) ) ) { 348 360
Note: See TracChangeset
for help on using the changeset viewer.