Changeset 29311 for trunk/src/wp-includes/comment.php
- Timestamp:
- 07/27/2014 05:45:34 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/comment.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/comment.php
r29165 r29311 736 736 */ 737 737 $comment_cookie_lifetime = apply_filters( 'comment_cookie_lifetime', 30000000 ); 738 $secure = is_https_url( home_url() );738 $secure = ( 'https' === parse_url( home_url(), PHP_URL_SCHEME ) ); 739 739 setcookie( 'comment_author_' . COOKIEHASH, $comment->comment_author, time() + $comment_cookie_lifetime, COOKIEPATH, COOKIE_DOMAIN, $secure ); 740 740 setcookie( 'comment_author_email_' . COOKIEHASH, $comment->comment_author_email, time() + $comment_cookie_lifetime, COOKIEPATH, COOKIE_DOMAIN, $secure );
Note: See TracChangeset
for help on using the changeset viewer.