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

WordPress Trac noreply at wordpress.org
Wed Aug 26 04:41:31 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:"33751"]:
 #!CommitTicketReference repository="" revision="33751"
 Rewrite: move `WP_Rewrite` into its own file. `rewrite.php` loads the new
 files, so this is 100% BC if someone is loading `rewrite.php` directly.
 New files created using `svn cp`.

 The rewrite functions have all kinds of cross-dependencies (like
 `WP_Query`), so loading the file by itself would have been bizarre (and
 still is).


 `rewrite.php` contains only top-level code. Class file only contains the
 class. Functions file only contains functions.

 See #33413.

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

More information about the wp-trac mailing list