Introduce WP_User::exists(). see #20372

git-svn-id: https://develop.svn.wordpress.org/trunk@20378 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2012-04-06 19:18:45 +00:00
parent f880b3544d
commit 6f9ceb2326
9 changed files with 25 additions and 13 deletions
+1 -1
View File
@@ -709,7 +709,7 @@ if ( !function_exists('is_user_logged_in') ) :
function is_user_logged_in() {
$user = wp_get_current_user();
if ( empty( $user->ID ) )
if ( ! $user->exists() )
return false;
return true;