mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user