[wp-trac] [WordPress Trac] #22076: WP Upgrader: update_bulk_plugins_complete_actions should pass information about all plugins to the filter
WordPress Trac
wp-trac at lists.automattic.com
Tue Oct 2 07:56:20 UTC 2012
#22076: WP Upgrader: update_bulk_plugins_complete_actions should pass information
about all plugins to the filter
-----------------------------+-----------------------------
Reporter: ragulka | Type: defect (bug)
Status: new | Priority: normal
Milestone: Awaiting Review | Component: Upgrade/Install
Version: 3.4.2 | Severity: normal
Keywords: needs-patch |
-----------------------------+-----------------------------
In class-wp-upgrader.php, line 1214 there is this line:
{{{
$update_actions = apply_filters('update_plugin_complete_actions',
$update_actions, $this->plugin);
}}}
When adding a filter to it like this:
{{{
add_filter('update_bulk_plugins_complete_actions','test_filter',99,2);
function test_filter( $update_actions, $plugins ) {
echo print_r( $plugins, 1);
return $update_actions;
}
}}}
Only the last updated plugin info will be printed. However, it should
contain information about all the plugins that were updated (since we are
dealing with a bulk upgrade here).
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22076>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list