Ticket #23192: 23192.patch
| File 23192.patch, 826 bytes (added by , 13 years ago) |
|---|
-
wp-includes/ms-functions.php
1748 1748 */ 1749 1749 function is_user_spammy( $username = 0 ) { 1750 1750 if ( $username == 0 ) { 1751 $user _id = get_current_user_id();1751 $user = get_user_by( 'id', get_current_user_id() ); 1752 1752 } else { 1753 $user _id = get_user_id_from_string($username );1753 $user = get_user_by( 'login', $username ); 1754 1754 } 1755 $u = get_userdata( $user_id );1756 1755 1757 return ( isset( $u ->spam ) && $u->spam == 1 );1756 return ( isset( $user->spam ) && $user->spam == 1 ); 1758 1757 } 1759 1758 1760 1759 /** … … 2013 2012 return min( $size, $fileupload_maxk ); 2014 2013 2015 2014 return min( $size, $fileupload_maxk, get_upload_space_available() ); 2016 } 2017 No newline at end of file 2015 }