Skip to:
Content

BuddyPress.org

Changeset 6079


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

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

Location:
trunk/bp-core
Files:
2 edited

Legend:

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

    r6067 r6079  
    7171    <input id="_bp_enable_akismet" name="_bp_enable_akismet" type="checkbox" value="1" <?php checked( bp_is_akismet_active( true ) ); ?> />
    7272    <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 */
     82function 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>
    7387
    7488<?php
     
    211225            'bp-disable-account-deletion',
    212226            'bp-disable-avatar-uploads',
     227            'bp_disable_blogforum_comments',
    213228            'bp-disable-profile-sync',
    214229            'bp_restrict_group_creation',
  • 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 &amp; 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.