Skip to:
Content

bbPress.org

Changeset 4360


Ignore:
Timestamp:
11/08/2012 07:50:55 AM (12 years ago)
Author:
johnjamesjacoby
Message:

Capabilities:

  • Only setup the default current user role when the current user has been byref copied into bbPress's instance.
  • Fixes issue where some core actions are suppressed during the deactivation process, causing an action order conflict with current_user.
  • Fixes #1939.
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/bbpress.php

    r4357 r4360  
    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();
    824827    }
    825828
  • trunk/includes/core/actions.php

    r4350 r4360  
    118118// Try to load the bbpress-functions.php file from the active themes
    119119add_action( 'bbp_after_setup_theme', 'bbp_load_theme_functions', 10 );
    120 
    121 // Multisite Global Forum Access
    122 add_action( 'bbp_setup_current_user', 'bbp_set_current_user_default_role', 10 );
    123120
    124121// Widgets
Note: See TracChangeset for help on using the changeset viewer.