Make WordPress Core

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: denis-de-bernardy's profile Denis-de-Bernardy 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:

  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
  1. 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.
  1. 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.
  1. When displaying plugin rows, it's not possible to remove the row's checkbox without resorting to javascript or an output buffer.
  1. is_plugin_active() has no useful filter and/or incorrectly reports that mu-plugins are inactive

Attachments (1)

mc-muplugin-loader.php (8.0 KB) - added by Denis-de-Bernardy 11 years ago.

Download all attachments as: .zip

Change History (3)

#1 @Denis-de-Bernardy
11 years ago

Oh, another issue I got as:

  1. There's no convenient means to inject plugin rows in wp-admin/update-core.php.

#2 @chriscct7
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.