Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/30/2012 01:26:18 PM (9 years ago)
Author:
boonebgorges
Message:

Settings improvements

  • Corrects the logic of bp-disable-blogforum-comments, so that checking the 'Enable' setting actually enables rather than disables
  • Moves settings saving to its own function bp_core_admin_settings_save(), which can be run earlier in the load process and then redirect, ensuring that the correct settings are rendered in the first pageload after save

Fixes #4301

File:
1 edited

Legend:

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

    r6079 r6156  
    340340            // Activity commenting on blog and forum posts
    341341            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' );
     342            register_setting( 'buddypress', 'bp-disable-blogforum-comments', 'bp_admin_sanitize_callback_blogforum_comments' );
    343343
    344344            // Allow activity akismet
Note: See TracChangeset for help on using the changeset viewer.