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

WordPress Trac noreply at wordpress.org
Wed Aug 26 07:52:07 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 DrewAPicture):

 In [changeset:"33756"]:
 {{{
 #!CommitTicketReference repository="" revision="33756"
 Docs: Add a file header to wp-includes/class-wp-widget-factory.php,
 created when the `WP_Widget_Factory` class was moved to its own file in
 [33746].

 It's important for every file in WordPress, regardless of makeup or
 architecture, to have its own file header, even if the file contains
 nothing but a class. When parsed, files and classes are mutually exclusive
 and should be documented with this in mind.

 See [33746]. See #33413.
 }}}

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


More information about the wp-trac mailing list