Make WordPress Core


Ignore:
Timestamp:
01/27/2010 06:11:17 PM (15 years ago)
Author:
ryan
Message:

Integrate wordpressmu_authenticate_siteadmin() into wp_authenticate_username_password(). see #11644

File:
1 edited

Legend:

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

    r12863 r12879  
    17481748}
    17491749
    1750 function wordpressmu_authenticate_siteadmin( $user, $password = '' ) {
    1751     if ( is_super_admin( $user->user_login ) == false && ( $primary_blog = get_usermeta( $user->user_id, "primary_blog" ) ) ) {
    1752         $details = get_blog_details( $primary_blog );
    1753         if ( is_object( $details ) && $details->spam == 1 )
    1754             return new WP_Error('blog_suspended', __('Blog Suspended.'));
    1755     }
    1756     return $user;
    1757 }
    1758 
    17591750function wordpressmu_wp_mail_from( $email ) {
    17601751    if ( strpos( $email, 'wordpress@' ) !== false )
Note: See TracChangeset for help on using the changeset viewer.