Changeset 29311 for trunk/src/wp-login.php
- Timestamp:
- 07/27/2014 05:45:34 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-login.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)