From d221f04e60a65c5d1f5828fdb2254d37989f3010 Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Fri, 30 Aug 2013 07:38:09 +0000 Subject: [PATCH] Plugin Upgrader: Plugin_Upgrader::upgrade() returns nothing in event of success, every other install(), upgrade() and bulk_upgrade() method returns true, so return true; Built from https://develop.svn.wordpress.org/trunk@25181 git-svn-id: http://core.svn.wordpress.org/trunk@25153 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-upgrader.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-admin/includes/class-wp-upgrader.php b/wp-admin/includes/class-wp-upgrader.php index 7ceda137f9..7ba3eb4ba3 100644 --- a/wp-admin/includes/class-wp-upgrader.php +++ b/wp-admin/includes/class-wp-upgrader.php @@ -470,6 +470,8 @@ class Plugin_Upgrader extends WP_Upgrader { delete_site_transient('update_plugins'); wp_cache_delete( 'plugins', 'plugins' ); do_action( 'upgrader_process_complete', $this, array( 'action' => 'update', 'type' => 'plugin' ), $plugin ); + + return true; } function bulk_upgrade($plugins) {