Introduce WP_User::exists(). see #20372

git-svn-id: http://svn.automattic.com/wordpress/trunk@20378 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan
2012-04-06 19:18:45 +00:00
parent f06fb15878
commit de41bc288b
9 changed files with 25 additions and 13 deletions

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);