Skip to:
Content

bbPress.org

Changeset 4375


Ignore:
Timestamp:
11/09/2012 03:56:55 PM (12 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.
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/bbpress.php

    r4368 r4375  
    822822    public function setup_current_user() {
    823823        $this->current_user = &wp_get_current_user();
    824 
    825         // Setup the default user role
    826         bbp_set_current_user_default_role();
    827824    }
    828825
  • 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.