Make WordPress Core

Changeset 61566


Ignore:
Timestamp:
01/30/2026 12:51:46 PM (4 months ago)
Author:
SergeyBiryukov
Message:

Docs: Correct the case in WP_Http_Cookie references.

Follow-up to [25016], [37428], [59009].

Props marian1.
Fixes #64572.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-http-requests-response.php

    r61403 r61566  
    156156     * @since 4.6.0
    157157     *
    158      * @return WP_HTTP_Cookie[] List of cookie objects.
     158     * @return WP_Http_Cookie[] List of cookie objects.
    159159     */
    160160    public function get_cookies() {
  • trunk/src/wp-includes/class-wp-http.php

    r61435 r61566  
    162162     *         @type string|false $message HTTP response message.
    163163     *     }
    164      *     @type WP_HTTP_Cookie[]                                  $cookies       Array of cookies set by the server.
     164     *     @type WP_Http_Cookie[]                                  $cookies       Array of cookies set by the server.
    165165     *     @type string|null                                       $filename      Optional. Filename of the response.
    166166     *     @type WP_HTTP_Requests_Response|null                    $http_response Response object.
     
    805805    public static function buildCookieHeader( &$r ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid
    806806        if ( ! empty( $r['cookies'] ) ) {
    807             // Upgrade any name => value cookie pairs to WP_HTTP_Cookie instances.
     807            // Upgrade any name => value cookie pairs to WP_Http_Cookie instances.
    808808            foreach ( $r['cookies'] as $name => $value ) {
    809809                if ( ! is_object( $value ) ) {
Note: See TracChangeset for help on using the changeset viewer.