[wp-trac] [WordPress Trac] #27124: A few more hooks would be desirable in the plugin list and plugin upgrade API

WordPress Trac noreply at wordpress.org
Fri Feb 14 06:26:16 UTC 2014


#27124: A few more hooks would be desirable in the plugin list and plugin upgrade
API
-------------------------------+-----------------------------
 Reporter:  Denis-de-Bernardy  |      Owner:
     Type:  enhancement        |     Status:  new
 Priority:  normal             |  Milestone:  Awaiting Review
Component:  Upgrade/Install    |    Version:  3.8.1
 Severity:  normal             |   Keywords:
  Focuses:  administration     |
-------------------------------+-----------------------------
 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:

 1. 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

 2. 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.

 3. 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.

 4. When displaying plugin rows, it's not possible to remove the row's
 checkbox without resorting to javascript or an output buffer.

 5. is_plugin_active() has no useful filter and/or incorrectly reports that
 mu-plugins are inactive

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27124>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list