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-core-dependency.php

    r4223 r4236  
    233233function bbp_login_form_login() {
    234234    do_action( 'bbp_login_form_login' );
     235}
     236
     237/** User Actions **************************************************************/
     238
     239/**
     240 * The main action for hooking into a user saving their profile
     241 *
     242 * @since bbPress (r4235)
     243 * @param int $user_id ID of user being edited
     244 * @uses do_action() Calls 'bbp_edit_user_profile_update'
     245 */
     246function bbp_edit_user_profile_update( $user_id = 0 ) {
     247    do_action( 'bbp_edit_user_profile_update', $user_id );
    235248}
    236249
Note: See TracChangeset for help on using the changeset viewer.