WordPress.org

Make WordPress Core

Changeset 25183


Ignore:
Timestamp:
08/30/2013 04:28:59 PM (6 years ago)
Author:
nacin
Message:

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

props duck_.
fixes #25166 for trunk.
see #15627.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/ms-functions.php

    r25127 r25183  
    900900        return false;
    901901
    902     $user = new WP_User( $user_id );
    903 
    904902    // Newly created users have no roles or caps until they are added to a blog.
    905     delete_user_option( $user_id, $user->cap_key );
     903    delete_user_option( $user_id, 'capabilities' );
    906904    delete_user_option( $user_id, 'user_level' );
    907905
Note: See TracChangeset for help on using the changeset viewer.