Skip to:
Content

bbPress.org


Ignore:
Timestamp:
11/09/2012 03:56:55 PM (13 years ago)
Author:
johnjamesjacoby
Message:

Capabilities:

  • Rehook bbp_set_current_user_default_role() back to 'bbp_setup_current_user'.
  • Now that deactivation check has moved, it's safe to hook this directly again.
  • Remove from bbPress::setup_current_user().
  • See #1939.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/core/actions.php

    r4371 r4375  
    100100 * role between sites. Note that if a user already has a role on that site, no
    101101 * mapping will occur.
    102  */
    103 add_action( 'switch_blog', 'bbp_set_current_user_default_role', 1 );
     102 *
     103 * We also hook to 'bbp_setup_current_user' -- naturally.
     104 */
     105add_action( 'switch_blog',            'bbp_set_current_user_default_role' );
     106add_action( 'bbp_setup_current_user', 'bbp_set_current_user_default_role' );
    104107
    105108/**
Note: See TracChangeset for help on using the changeset viewer.