Make WordPress Core

Changeset 25184


Ignore:
Timestamp:
08/30/2013 04:32:45 PM (11 years ago)
Author:
nacin
Message:

Revert [23307] so new users in multisite are not automatically subscribers on the main site.

Merges [25183] to the 3.6 branch.

props duck_.
fixes #25166.
see #15627.

Location:
branches/3.6
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/3.6

  • branches/3.6/wp-includes/ms-functions.php

    r24155 r25184  
    899899        return false;
    900900
    901     $user = new WP_User( $user_id );
    902 
    903901    // Newly created users have no roles or caps until they are added to a blog.
    904     delete_user_option( $user_id, $user->cap_key );
     902    delete_user_option( $user_id, 'capabilities' );
    905903    delete_user_option( $user_id, 'user_level' );
    906904
Note: See TracChangeset for help on using the changeset viewer.