From 97bdf396f4e4206ae851f9164e3baf8b22377107 Mon Sep 17 00:00:00 2001 From: westi Date: Wed, 26 Nov 2008 15:23:51 +0000 Subject: [PATCH] Sync arguments to plugin hooks to enable same function to be hooked on to both to enable backward compatible plugins. Fixes #8365 props strider72. git-svn-id: http://svn.automattic.com/wordpress/trunk@9904 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/plugins.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-admin/plugins.php b/wp-admin/plugins.php index 3c7edb4c77..c8e55629b9 100644 --- a/wp-admin/plugins.php +++ b/wp-admin/plugins.php @@ -287,8 +287,8 @@ function print_plugins_table($plugins, $context = '') { if ( current_user_can('edit_plugins') && is_writable(WP_PLUGIN_DIR . '/' . $plugin_file) ) $action_links[] = '' . __('Edit') . ''; - $action_links = apply_filters('plugin_action_links', $action_links, $plugin_file, $plugin_data, $context); - $action_links = apply_filters("plugin_action_links_$plugin_file", $action_links, $plugin_data, $context); + $action_links = apply_filters( 'plugin_action_links', $action_links, $plugin_file, $plugin_data, $context ); + $action_links = apply_filters( "plugin_action_links_$plugin_file", $action_links, $plugin_file, $plugin_data, $context ); echo " @@ -302,7 +302,7 @@ function print_plugins_table($plugins, $context = '') { echo ' '; do_action( 'after_plugin_row', $plugin_file, $plugin_data, $context ); - do_action( "after_plugin_row_$plugin_file", $plugin_data, $context ); + do_action( "after_plugin_row_$plugin_file", $plugin_file, $plugin_data, $context ); } ?>