WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/01/2020 10:38:00 AM (16 months ago)
Author:
johnbillion
Message:

Docs: Miscellaneous docs fixes and improvements.

See #48303.

File:
1 edited

Legend:

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

    r47397 r47398  
    856856        }
    857857
    858         // Front-end cookie is secure when the auth cookie is secure and the site's home URL is forced HTTPS.
     858        // Front-end cookie is secure when the auth cookie is secure and the site's home URL uses HTTPS.
    859859        $secure_logged_in_cookie = $secure && 'https' === parse_url( get_option( 'home' ), PHP_URL_SCHEME );
    860860
    861861        /**
    862          * Filters whether the connection is secure.
     862         * Filters whether the auth cookie should only be sent over HTTPS.
    863863         *
    864864         * @since 3.1.0
    865865         *
    866          * @param bool $secure  Whether the connection is secure.
     866         * @param bool $secure  Whether the cookie should only be sent over HTTPS.
    867867         * @param int  $user_id User ID.
    868868         */
     
    870870
    871871        /**
    872          * Filters whether to use a secure cookie when logged-in.
     872         * Filters whether the logged in cookie should only be sent over HTTPS.
    873873         *
    874874         * @since 3.1.0
    875875         *
    876          * @param bool $secure_logged_in_cookie Whether to use a secure cookie when logged-in.
     876         * @param bool $secure_logged_in_cookie Whether the logged in cookie should only be sent over HTTPS.
    877877         * @param int  $user_id                 User ID.
    878          * @param bool $secure                  Whether the connection is secure.
     878         * @param bool $secure                  Whether the auth cookie should only be sent over HTTPS.
    879879         */
    880880        $secure_logged_in_cookie = apply_filters( 'secure_logged_in_cookie', $secure_logged_in_cookie, $user_id, $secure );
Note: See TracChangeset for help on using the changeset viewer.