Skip to:
Content

bbPress.org


Ignore:
Timestamp:
10/09/2012 06:52:38 PM (12 years ago)
Author:
johnjamesjacoby
Message:

Capabilities:

  • Introduce sub-action for saving a users profile.
  • Hook capability saving functions to this new action.
  • Remove duplicate admin routine from /bbp-admin/bbp-users.php.
  • Remove hardcoded capability saving from bbp_edit_user_handler().
  • Add edit_user capability checks to cap save and reset functions.
  • Fixes bug when caps would be lost when a user saves their own profile.
  • Fixes #1963.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bbp-includes/bbp-user-functions.php

    r4228 r4236  
    934934    $edit_user = edit_user( $user_id );
    935935
    936     // Either reset caps for role
    937     if ( ! empty( $_POST['bbp-default-caps'] ) ) {
    938         bbp_reset_user_caps( $user_id );
    939 
    940     // Or set caps individually
    941     } else {
    942         bbp_save_user_caps( $user_id );
    943     }
    944 
    945936    // Error(s) editng the user, so copy them into the global
    946937    if ( is_wp_error( $edit_user ) ) {
Note: See TracChangeset for help on using the changeset viewer.