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
@@ -579,7 +579,7 @@ function update_comment_meta($comment_id, $meta_key, $meta_value, $prev_value =
* @since 3.4.0
*/
function wp_set_comment_cookies($comment, $user) {
if ( $user->ID )
if ( $user->exists() )
return;
$comment_cookie_lifetime = apply_filters('comment_cookie_lifetime', 30000000);