Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/13/2012 07:35:20 PM (9 years ago)
Author:
djpaul
Message:

Add missing 'activity comments on blog posts and forum posts' settings back to Settings screen. See #4205.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-admin.php

    r6067 r6079  
    298298            add_settings_section( 'bp_xprofile',      __( 'Profile Settings', 'buddypress' ), 'bp_admin_setting_callback_xprofile_section', 'buddypress'                );
    299299
    300             // Allow topic and reply revisions
     300            // Allow avatar uploads
    301301            add_settings_field( 'bp-disable-avatar-uploads', __( 'Avatar Uploads',   'buddypress' ), 'bp_admin_setting_callback_avatar_uploads',   'buddypress', 'bp_xprofile' );
    302302            register_setting  ( 'buddypress',         'bp-disable-avatar-uploads',   'intval'                                                                                  );
     
    333333        /** Activity Section **************************************************/
    334334
    335         if ( bp_is_active( 'activity' ) && ( is_plugin_active( 'akismet/akismet.php' ) && defined( 'AKISMET_VERSION' ) ) ) {
     335        if ( bp_is_active( 'activity' ) ) {
    336336
    337337            // Add the main section
    338338            add_settings_section( 'bp_activity',      __( 'Activity Settings', 'buddypress' ), 'bp_admin_setting_callback_activity_section', 'buddypress'                );
    339339
    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            }
    343349        }
    344350
Note: See TracChangeset for help on using the changeset viewer.