Make WordPress Core

Ticket #54504: 54504-fix-typo.patch

File 54504-fix-typo.patch, 957 bytes (added by jrf, 19 months ago)

Fix case-issue in Requests reference

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

    From 17b48b9b970e06233d718b2445e98e9353dc4a4e Mon Sep 17 00:00:00 2001
    From: jrfnl <jrfnl@users.noreply.github.com>
    Date: Tue, 10 Jan 2023 10:03:17 +0100
    Subject: [PATCH] WP_Http: fix typo
    
    ---
     src/wp-includes/class-wp-http.php | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/src/wp-includes/class-wp-http.php b/src/wp-includes/class-wp-http.php
    index 2472367835..7edffe0e6b 100644
    a b class WP_Http { 
    379379                // Check for proxies.
    380380                $proxy = new WP_HTTP_Proxy();
    381381                if ( $proxy->is_enabled() && $proxy->send_through_proxy( $url ) ) {
    382                         $options['proxy'] = new WpOrg\Requests\Proxy\HTTP( $proxy->host() . ':' . $proxy->port() );
     382                        $options['proxy'] = new WpOrg\Requests\Proxy\Http( $proxy->host() . ':' . $proxy->port() );
    383383
    384384                        if ( $proxy->use_authentication() ) {
    385385                                $options['proxy']->use_authentication = true;