Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/11/2015 03:22:53 AM (9 years ago)
Author:
boonebgorges
Message:

Improve sanitization of email notification settings.

Props boonebgorges, johnjamesjacoby, imath, dcavins.
See #6707.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-settings/bp-settings-actions.php

    r10137 r10329  
    304304    check_admin_referer( 'bp_settings_notifications' );
    305305
    306     if ( isset( $_POST['notifications'] ) ) {
    307         foreach ( (array) $_POST['notifications'] as $key => $value ) {
    308             bp_update_user_meta( (int) bp_displayed_user_id(), $key, $value );
    309         }
    310     }
     306    bp_settings_update_notification_settings( bp_displayed_user_id(), (array) $_POST['notifications'] );
    311307
    312308    // Switch feedback for super admins
Note: See TracChangeset for help on using the changeset viewer.