Changeset 6079 for trunk/bp-core/bp-core-admin.php
- Timestamp:
- 06/13/2012 07:35:20 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-admin.php
r6067 r6079 298 298 add_settings_section( 'bp_xprofile', __( 'Profile Settings', 'buddypress' ), 'bp_admin_setting_callback_xprofile_section', 'buddypress' ); 299 299 300 // Allow topic and reply revisions300 // Allow avatar uploads 301 301 add_settings_field( 'bp-disable-avatar-uploads', __( 'Avatar Uploads', 'buddypress' ), 'bp_admin_setting_callback_avatar_uploads', 'buddypress', 'bp_xprofile' ); 302 302 register_setting ( 'buddypress', 'bp-disable-avatar-uploads', 'intval' ); … … 333 333 /** Activity Section **************************************************/ 334 334 335 if ( bp_is_active( 'activity' ) && ( is_plugin_active( 'akismet/akismet.php' ) && defined( 'AKISMET_VERSION' ) )) {335 if ( bp_is_active( 'activity' ) ) { 336 336 337 337 // Add the main section 338 338 add_settings_section( 'bp_activity', __( 'Activity Settings', 'buddypress' ), 'bp_admin_setting_callback_activity_section', 'buddypress' ); 339 339 340 // Allow subscriptions setting 341 add_settings_field( '_bp_enable_akismet', __( 'Akismet', 'buddypress' ), 'bp_admin_setting_callback_activity_akismet', 'buddypress', 'bp_activity' ); 342 register_setting ( 'buddypress', '_bp_enable_akismet', 'intval' ); 340 // Activity commenting on blog and forum posts 341 add_settings_field( 'bp-disable-blogforum-comments', __( 'Blog & Forum Comments', 'buddypress' ), 'bp_admin_setting_callback_blogforum_comments', 'buddypress', 'bp_activity' ); 342 register_setting( 'buddypress', 'bp-disable-blogforum-comments', 'intval' ); 343 344 // Allow activity akismet 345 if ( is_plugin_active( 'akismet/akismet.php' ) && defined( 'AKISMET_VERSION' ) ) { 346 add_settings_field( '_bp_enable_akismet', __( 'Akismet', 'buddypress' ), 'bp_admin_setting_callback_activity_akismet', 'buddypress', 'bp_activity' ); 347 register_setting ( 'buddypress', '_bp_enable_akismet', 'intval' ); 348 } 343 349 } 344 350
Note: See TracChangeset
for help on using the changeset viewer.