Make WordPress Core

Changeset 52026


Ignore:
Timestamp:
11/07/2021 01:35:52 AM (2 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Move wp-includes/class-http.php to wp-includes/class-wp-http.php.

This renames the file containing the WP_Http class to conform to the coding standards.

This commit also includes:

  • A new class-http.php that includes the new file, for anyone that may've been including the file directly.
  • Replaces references to the old filename with the new filename.

Follow-up to [8516], [13274], [33748].

Fixes #54389. See #53359.

Location:
trunk/src
Files:
1 added
4 edited
1 copied

Legend:

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

    r51931 r52026  
    116116            $ssl_verify = apply_filters( 'https_local_ssl_verify', $ssl_verify, $url );
    117117        } elseif ( ! $is_local ) {
    118             /** This filter is documented in wp-includes/class-http.php */
     118            /** This filter is documented in wp-includes/class-wp-http.php */
    119119            $ssl_verify = apply_filters( 'https_ssl_verify', $ssl_verify, $url );
    120120        }
  • trunk/src/wp-includes/class-wp-http-streams.php

    r51940 r52026  
    106106            $ssl_verify = apply_filters( 'https_local_ssl_verify', $ssl_verify, $url );
    107107        } elseif ( ! $is_local ) {
    108             /** This filter is documented in wp-includes/class-http.php */
     108            /** This filter is documented in wp-includes/class-wp-http.php */
    109109            $ssl_verify = apply_filters( 'https_ssl_verify', $ssl_verify, $url );
    110110        }
  • trunk/src/wp-includes/class-wp-http.php

    r52025 r52026  
    274274        if ( empty( $url ) || empty( $parsed_url['scheme'] ) ) {
    275275            $response = new WP_Error( 'http_request_failed', __( 'A valid URL was not provided.' ) );
    276             /** This action is documented in wp-includes/class-http.php */
     276            /** This action is documented in wp-includes/class-wp-http.php */
    277277            do_action( 'http_api_debug', $response, 'response', 'Requests', $parsed_args, $url );
    278278            return $response;
     
    281281        if ( $this->block_request( $url ) ) {
    282282            $response = new WP_Error( 'http_request_not_executed', __( 'User has blocked requests through HTTP.' ) );
    283             /** This action is documented in wp-includes/class-http.php */
     283            /** This action is documented in wp-includes/class-wp-http.php */
    284284            do_action( 'http_api_debug', $response, 'response', 'Requests', $parsed_args, $url );
    285285            return $response;
     
    298298            if ( ! wp_is_writable( dirname( $parsed_args['filename'] ) ) ) {
    299299                $response = new WP_Error( 'http_request_failed', __( 'Destination directory for file streaming does not exist or is not writable.' ) );
    300                 /** This action is documented in wp-includes/class-http.php */
     300                /** This action is documented in wp-includes/class-wp-http.php */
    301301                do_action( 'http_api_debug', $response, 'response', 'Requests', $parsed_args, $url );
    302302                return $response;
     
    586586        $response = $transports[ $class ]->request( $url, $args );
    587587
    588         /** This action is documented in wp-includes/class-http.php */
     588        /** This action is documented in wp-includes/class-wp-http.php */
    589589        do_action( 'http_api_debug', $response, 'response', $class, $args, $url );
    590590
     
    593593        }
    594594
    595         /** This filter is documented in wp-includes/class-http.php */
     595        /** This filter is documented in wp-includes/class-wp-http.php */
    596596        return apply_filters( 'http_response', $response, $args, $url );
    597597    }
  • trunk/src/wp-includes/class-wp-xmlrpc-server.php

    r51590 r52026  
    69246924        $remote_ip = preg_replace( '/[^0-9a-fA-F:., ]/', '', $_SERVER['REMOTE_ADDR'] );
    69256925
    6926         /** This filter is documented in wp-includes/class-http.php */
     6926        /** This filter is documented in wp-includes/class-wp-http.php */
    69276927        $user_agent = apply_filters( 'http_headers_useragent', 'WordPress/' . get_bloginfo( 'version' ) . '; ' . get_bloginfo( 'url' ), $pagelinkedfrom );
    69286928
  • trunk/src/wp-settings.php

    r51973 r52026  
    231231require ABSPATH . WPINC . '/media.php';
    232232require ABSPATH . WPINC . '/http.php';
    233 require ABSPATH . WPINC . '/class-http.php';
     233require ABSPATH . WPINC . '/class-wp-http.php';
    234234require ABSPATH . WPINC . '/class-wp-http-streams.php';
    235235require ABSPATH . WPINC . '/class-wp-http-curl.php';
Note: See TracChangeset for help on using the changeset viewer.