diff --git a/dispatchers/Html.php b/dispatchers/Html.php index 9dd390f8..43394a63 100644 --- a/dispatchers/Html.php +++ b/dispatchers/Html.php @@ -73,7 +73,7 @@ public function action_footer() { * @return bool Should the authentication cookie be secure? */ public static function secure_cookie() { - return ( is_ssl() && ( 'https' === parse_url( home_url(), PHP_URL_SCHEME ) ) ); + return ( is_ssl() && ( 'https' === wp_parse_url( home_url(), PHP_URL_SCHEME ) ) ); } /**