Changeset 23579 for trunk/wp-includes/user.php
- Timestamp:
- 03/01/2013 06:01:16 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/user.php
r23554 r23579 88 88 89 89 if ( !$user ) 90 return new WP_Error( 'invalid_username', sprintf(__('<strong>ERROR</strong>: Invalid username. <a href="%s" title="Password Lost and Found">Lost your password</a>?'), wp_lostpassword_url()));90 return new WP_Error( 'invalid_username', sprintf( __( '<strong>ERROR</strong>: Invalid username. <a href="%s" title="Password Lost and Found">Lost your password</a>?' ), wp_lostpassword_url() ) ); 91 91 92 92 if ( is_multisite() ) { 93 93 // Is user marked as spam? 94 if ( 1 == $user->spam )95 return new WP_Error( 'invalid_username', __('<strong>ERROR</strong>: Your account has been marked as a spammer.'));94 if ( 1 == $user->spam ) 95 return new WP_Error( 'spammer_account', __( '<strong>ERROR</strong>: Your account has been marked as a spammer.' ) ); 96 96 97 97 // Is a user's blog marked as spam? 98 if ( !is_super_admin( $user->ID ) && isset( $user->primary_blog) ) {98 if ( !is_super_admin( $user->ID ) && isset( $user->primary_blog ) ) { 99 99 $details = get_blog_details( $user->primary_blog ); 100 100 if ( is_object( $details ) && $details->spam == 1 ) 101 return new WP_Error( 'blog_suspended', __('Site Suspended.'));101 return new WP_Error( 'blog_suspended', __( 'Site Suspended.' ) ); 102 102 } 103 103 }
Note: See TracChangeset
for help on using the changeset viewer.