Skip to content

Commit d200a15

Browse files
Docs: Correct the case in WP_Http_Cookie references.
Follow-up to [25016], [37428], [59009]. Props marian1. Fixes #64572. git-svn-id: https://develop.svn.wordpress.org/trunk@61566 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 5885cb9 commit d200a15

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/wp-includes/class-wp-http-requests-response.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ public function set_data( $data ) {
155155
*
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() {
161161
$cookies = array();

src/wp-includes/class-wp-http.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ class WP_Http {
161161
* @type int|false $code HTTP response status code.
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.
167167
* }
@@ -804,7 +804,7 @@ public static function processHeaders( $headers, $url = '' ) { // phpcs:ignore W
804804
*/
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 ) ) {
810810
$r['cookies'][ $name ] = new WP_Http_Cookie(

0 commit comments

Comments
 (0)