[wp-trac] [WordPress Trac] #54389: Rename class-http.php to class-wp-http.php

WordPress Trac noreply at wordpress.org
Sun Nov 7 01:34:41 UTC 2021


#54389: Rename class-http.php to class-wp-http.php
------------------------------+--------------------
 Reporter:  SergeyBiryukov    |      Owner:  (none)
     Type:  enhancement       |     Status:  new
 Priority:  normal            |  Milestone:  5.9
Component:  HTTP API          |    Version:
 Severity:  normal            |   Keywords:
  Focuses:  coding-standards  |
------------------------------+--------------------
 Background: #33413, #34432, #36335, #36618, #47632, #47775.

 This follows up on the work that started in #33413 and continued in the
 subsequent tickets to make sure WP core PHP classes are located in
 separate files and conform to the
 [https://make.wordpress.org/core/handbook/best-practices/coding-
 standards/php/#naming-conventions naming conventions] per WordPress coding
 standards:

 * [45654] renamed `wp-admin/custom-header.php` to `wp-admin/includes
 /class-custom-image-header.php`.
 * [45662] renamed `wp-admin/custom-background.php` to `wp-admin/includes
 /class-custom-background.php`.
 * [45663] renamed `wp-includes/class-oembed.php` to `wp-includes/class-wp-
 oembed.php`.
 * [45678] renamed `wp-includes/date.php` to `wp-includes/class-wp-date-
 query.php`.

 See comment:33:ticket:47632 for a general procedure with these renamings.

 The same should be done for the `WP_Http` class, which currently resides
 in `wp-includes/class-http.php` and should be moved to `wp-includes/class-
 wp-http.php`.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/54389>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list