mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-30 02:04:26 +00:00
If no user is logged in, setup an empty user.
git-svn-id: https://develop.svn.wordpress.org/trunk@3299 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -117,6 +117,9 @@ class WP_User {
|
||||
function WP_User($id) {
|
||||
global $wp_roles, $table_prefix;
|
||||
|
||||
if ( empty($id) )
|
||||
return;
|
||||
|
||||
if ( is_numeric($id) ) {
|
||||
$this->data = get_userdata($id);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user