Changeset 29311
- Timestamp:
- 07/27/2014 05:45:34 PM (11 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
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 ); -
trunk/src/wp-includes/option.php
r28895 r29311 747 747 748 748 // The cookie is not set in the current browser or the saved value is newer. 749 $secure = is_https_url( site_url() );749 $secure = ( 'https' === parse_url( site_url(), PHP_URL_SCHEME ) ); 750 750 setcookie( 'wp-settings-' . $user_id, $settings, time() + YEAR_IN_SECONDS, SITECOOKIEPATH, COOKIE_DOMAIN, $secure ); 751 751 setcookie( 'wp-settings-time-' . $user_id, time(), time() + YEAR_IN_SECONDS, SITECOOKIEPATH, COOKIE_DOMAIN, $secure ); -
trunk/src/wp-login.php
r29258 r29311 428 428 429 429 //Set a cookie now to see if they are supported by the browser. 430 $secure = ( is_https_url( home_url() ) && is_https_url( site_url()) );430 $secure = ( 'https' === parse_url( site_url(), PHP_URL_SCHEME ) && 'https' === parse_url( home_url(), PHP_URL_SCHEME ) ); 431 431 setcookie( TEST_COOKIE, 'WP Cookie check', 0, COOKIEPATH, COOKIE_DOMAIN, $secure ); 432 432 if ( SITECOOKIEPATH != COOKIEPATH ) … … 470 470 */ 471 471 $expire = apply_filters( 'post_password_expires', time() + 10 * DAY_IN_SECONDS ); 472 $secure = is_https_url( home_url() );472 $secure = ( 'https' === parse_url( home_url(), PHP_URL_SCHEME ) ); 473 473 setcookie( 'wp-postpass_' . COOKIEHASH, $hasher->HashPassword( wp_unslash( $_POST['post_password'] ) ), $expire, COOKIEPATH, COOKIE_DOMAIN, $secure ); 474 474
Note: See TracChangeset
for help on using the changeset viewer.