[wp-trac] [WordPress Trac] #36618: Move WP_Upgrader and WP_Upgrader_Skin subclasses into separate files
WordPress Trac
noreply at wordpress.org
Tue May 10 13:26:55 UTC 2016
#36618: Move WP_Upgrader and WP_Upgrader_Skin subclasses into separate files
-----------------------------+-----------------------
Reporter: ocean90 | Owner: ocean90
Type: enhancement | Status: assigned
Priority: normal | Milestone: 4.6
Component: Upgrade/Install | Version:
Severity: normal | Resolution:
Keywords: early | Focuses:
-----------------------------+-----------------------
Comment (by ocean90):
Replying to [comment:10 ocean90]:
> 8) Check references to include/require `wp-admin/includes/class-wp-
upgrader.php` and if they can be changed to include/require only necessary
files. `File_Upload_Upgrader` might to be one of those.
`File_Upload_Upgrader` is only used in `/wp-admin/update.php` which has an
`include_once` for `class-wp-upgrader.php` on top. `WP_Automatic_Updater`
is another class which is not a subclass of `WP_Upgrader` but it's using
skins and other upgraders.
For now, we have to continue loading `wp-admin/includes/class-wp-
upgrader.php` until we have an autoloader, see #36335.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36618#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list