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

WordPress Trac noreply at wordpress.org
Tue Sep 1 13:49:04 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:"33843"]:
 {{{
 #!CommitTicketReference repository="" revision="33843"
 Move widget classes to their own files in `wp-includes/widgets`:

 * `default-widgets.php` now requires all of the individual classes
 * Move the functions scattered about this file to `widget-functions.php`,
 which loads before `default-widgets.php`, which only conditionally loads
 anyway in `wp_maybe_load_widgets()`, which is hooked on `plugins_loaded`

 See #33413, #23012.
 }}}

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


More information about the wp-trac mailing list