Opened 11 years ago
Closed 9 years ago
#27124 closed enhancement (maybelater)
A few more hooks would be desirable in the plugin list and plugin upgrade API
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.8.1 |
Component: | Upgrade/Install | Keywords: | needs-patch |
Focuses: | administration | Cc: |
Description
While working on the attached WP MU plugin loader, I encountered a few use-cases where I needed to hack into WP globals and resorting to some jQuery-fu due to the lack of plugin hooks in the WP plugin API.
As the attached plugin will illustrate:
- There's no convenient means to request a version check for extra plugins in
wp_update_plugins()
. One has to resort to filtering the http arguments
- There's no convenient means to post-process the reply in the same function. One has to hook into e.g.
pre_set_site_transient_update_plugins
to catch it before it gets stored.
- There's no proper means to pre-process the contents of the plugins admin page so as to inject extra update notices. The only way to do so is to catch a random hook in there and manipulate the $plugins global.
- When displaying plugin rows, it's not possible to remove the row's checkbox without resorting to javascript or an output buffer.
- is_plugin_active() has no useful filter and/or incorrectly reports that mu-plugins are inactive
Attachments (1)
Change History (3)
#2
@
9 years ago
- Keywords needs-patch added
- Milestone Awaiting Review deleted
- Resolution set to maybelater
- Status changed from new to closed
Closing as maybelater. Complete lack of interest on the feature on the ticket over the last 2 years. Feel free to reopen items as new individual tickets (multi issue trac tickets are unhelpful because they make a mess when for example 1 item gets solved and the rest remain) when more interest re-emerges (particularly if there's a patch)
Note: See
TracTickets for help on using
tickets.
Oh, another issue I got as:
wp-admin/update-core.php
.