Ticket #656 (closed enhancement: fixed)

Opened 4 months ago

Last modified 4 months ago

Filter for returned list of available plugins.

Reported by: lunabyte Assigned to: somebody
Priority: normal Milestone:
Component: component1 Version:
Severity: normal Keywords: plugin list filter
Cc:

Description

Title pretty much describes it.

Need a filter on the returned list of plugins available from /wp-admin/includes/plugin.php.

http://trac.mu.wordpress.org/browser/trunk/wp-admin/includes/plugin.php#L92

From: return $wp_plugins;

To: return apply_filters('wp_plugin_list', $wp_plugins);

Change History

06/17/08 14:57:27 changed by donncha

  • status changed from new to closed.
  • resolution set to wontfix.

Out of curiousity, why? To hide dangerous plugins from unsuspecting users? It would be useful, but it'd also be useful in WP Core. Can you open a WP trac ticket on this?

06/17/08 15:21:09 changed by lunabyte

  • status changed from closed to reopened.
  • resolution deleted.

There could be several uses for it, actually.

Perhaps there is a plugin which when used in the right hands is fine, but letting just any blog admin activate it and use it wouldn't be wise.

I can't see it being helpful for WP at all, really, since users are more tightly controlled.

06/17/08 15:54:48 changed by donncha

  • status changed from reopened to closed.
  • resolution set to fixed.

OK, added this in wp-admin/plugins.php instead, in [1333]

06/17/08 16:17:30 changed by lunabyte

Excellent. Thanks!