Changeset 20000 for trunk/wp-includes/comment.php
- Timestamp:
- 02/27/2012 07:46:52 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/comment.php
r19910 r20000 570 570 } 571 571 572 /** 573 * Sets the cookies used to store an unauthenticated commentator's identity. Typically used 574 * to recall previous comments by this commentator that are still held in moderation. 575 * 572 /** 573 * Sets the cookies used to store an unauthenticated commentator's identity. Typically used 574 * to recall previous comments by this commentator that are still held in moderation. 575 * 576 576 * @param object $comment Comment object. 577 577 * @param object $user Comment author's object. 578 578 * 579 579 * @since 3.4.0 580 */ 581 function wp_set_comment_cookies($comment, $user) { 580 */ 581 function wp_set_comment_cookies($comment, $user) { 582 582 if ( $user->ID ) 583 583 return; … … 587 587 setcookie('comment_author_email_' . COOKIEHASH, $comment->comment_author_email, time() + $comment_cookie_lifetime, COOKIEPATH, COOKIE_DOMAIN); 588 588 setcookie('comment_author_url_' . COOKIEHASH, esc_url($comment->comment_author_url), time() + $comment_cookie_lifetime, COOKIEPATH, COOKIE_DOMAIN); 589 } 589 } 590 590 591 591 /**
Note: See TracChangeset
for help on using the changeset viewer.