Make WordPress Core


Ignore:
Timestamp:
07/27/2014 05:45:34 PM (11 years ago)
Author:
ocean90
Message:

Replace is_https_url() with 'https' === parse_url( $url, PHP_URL_SCHEME ).

see #28427, #28487.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/comment.php

    r29165 r29311  
    736736     */
    737737    $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 ) );
    739739    setcookie( 'comment_author_' . COOKIEHASH, $comment->comment_author, time() + $comment_cookie_lifetime, COOKIEPATH, COOKIE_DOMAIN, $secure );
    740740    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.