[wp-trac] [WordPress Trac] #33413: most PHP classes should be in their own file

WordPress Trac noreply at wordpress.org
Wed Aug 26 03:55:02 UTC 2015


#33413: most PHP classes should be in their own file
----------------------------+-----------------------------
 Reporter:  wonderboymusic  |       Owner:  wonderboymusic
     Type:  enhancement     |      Status:  assigned
 Priority:  normal          |   Milestone:  4.4
Component:  General         |     Version:  trunk
 Severity:  normal          |  Resolution:
 Keywords:  dev-feedback    |     Focuses:
----------------------------+-----------------------------

Comment (by wonderboymusic):

 In [changeset:"33748"]:
 {{{
 #!CommitTicketReference repository="" revision="33748"
 HTTP: move classes into their own files, `http.php` loads the new files,
 so this is 100% BC if someone is loading `http.php` directly. New files
 created using `svn cp`.

 `class-http.php` requires functions from `http.php`, so loading it by
 itself wouldn't have worked.

 Creates:
 `class-wp-http-cookie.php`
 `class-wp-http-curl.php`
 `class-wp-http-encoding.php`
 `class-wp-http-proxy.php`
 `class-wp-http-streams.php`
 `http-functions.php`

 `WP_Http` remains in `class-http.php`.

 `http.php` contains only top-level code. Class files only contain classes.
 Functions file only contains functions.

 See #33413.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33413#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list