Opened 11 years ago
Closed 10 years ago
#21874 closed enhancement (fixed)
Remove unused functions in wp-admin/includes/update.php
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.7 | Priority: | normal |
Severity: | minor | Version: | 2.8 |
Component: | Upgrade/Install | Keywords: | has-patch |
Focuses: | Cc: |
Description
Just noticed these two functions, wp_update_plugin()
and wp_update_theme()
, which aren't used anywhere in core, and haven't been for a very long time far as I can tell. Looks like redundant code.
Attachments (1)
Change History (5)
#1
@
11 years ago
- Component changed from General to Upgrade/Install
- Version changed from trunk to 2.8
#2
@
10 years ago
Perhaps it's safer to Deprecate them, but I think we might be able to get away with just removing them.
From what I can see, all the major things use the classes directly, and we should push people to using WP CLI or similar for custom scripts (since they handle the edgecases better)
Note: See
TracTickets for help on using
tickets.
Unused since [11005].
wp_update_plugin()
is used in at least one plugin (outdated though):http://plugins.trac.wordpress.org/browser/ajax-plugin-helper/tags/1.0.5/ajax-plugin-helper.php#L294
And was mentioned on the forums at least once:
http://wordpress.org/support/topic/programmatically-update-wordpress
Perhaps it's safer to deprecate them.