Changeset 6079
- Timestamp:
- 06/13/2012 07:35:20 PM (12 years ago)
- Location:
- trunk/bp-core
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/admin/bp-core-settings.php
r6067 r6079 71 71 <input id="_bp_enable_akismet" name="_bp_enable_akismet" type="checkbox" value="1" <?php checked( bp_is_akismet_active( true ) ); ?> /> 72 72 <label for="_bp_enable_akismet"><?php _e( 'Allow Akismet to scan for activity stream spam', 'buddypress' ); ?></label> 73 74 <?php 75 } 76 77 /** 78 * Allow activity comments on blog posts and forum posts 79 * 80 * @since BuddyPress (1.6) 81 */ 82 function bp_admin_setting_callback_blogforum_comments() { 83 ?> 84 85 <input id="bp-disable-blogforum-comments" name="bp-disable-blogforum-comments" type="checkbox" value="1" <?php checked( bp_disable_blogforum_comments( true ) ); ?> /> 86 <label for="bp-disable-blogforum-comments"><?php _e( 'Allow activity stream commenting on blog and forum posts', 'buddypress' ); ?></label> 73 87 74 88 <?php … … 211 225 'bp-disable-account-deletion', 212 226 'bp-disable-avatar-uploads', 227 'bp_disable_blogforum_comments', 213 228 'bp-disable-profile-sync', 214 229 'bp_restrict_group_creation', -
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.