diff --git a/src/wp-includes/http.php b/src/wp-includes/http.php index 30782c4e50..6e65e36dae 100644 --- a/src/wp-includes/http.php +++ b/src/wp-includes/http.php @@ -30,3 +30,6 @@ require_once( ABSPATH . WPINC . '/class-wp-http-cookie.php' ); /** WP_Http_Encoding class */ require_once( ABSPATH . WPINC . '/class-wp-http-encoding.php' ); + +/** WP_HTTP_Response class */ +require_once( ABSPATH . WPINC . '/class-wp-http-response.php' ); diff --git a/src/wp-includes/rest-api.php b/src/wp-includes/rest-api.php index e244c5f3a7..9c7acb1b04 100644 --- a/src/wp-includes/rest-api.php +++ b/src/wp-includes/rest-api.php @@ -16,9 +16,6 @@ define( 'REST_API_VERSION', '2.0' ); /** WP_REST_Server class */ require_once( ABSPATH . WPINC . '/rest-api/class-wp-rest-server.php' ); -/** WP_HTTP_Response class */ -require_once( ABSPATH . WPINC . '/rest-api/class-wp-http-response.php' ); - /** WP_REST_Response class */ require_once( ABSPATH . WPINC . '/rest-api/class-wp-rest-response.php' );