From 6152c81dd126acc2f63cc6373fb742609d686469 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Mon, 14 Mar 2016 22:42:36 +0000 Subject: [PATCH] Docs: The `$update_result` parameter passed to `WP_Automatic_Updater::after_core_update()` is never a `WP_Error`. If an error is returned, the error object lives in the `result` property of the paramter. See #32246 git-svn-id: https://develop.svn.wordpress.org/trunk@36995 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-wp-upgrader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/includes/class-wp-upgrader.php b/src/wp-admin/includes/class-wp-upgrader.php index e7dcd64ada..246f646760 100644 --- a/src/wp-admin/includes/class-wp-upgrader.php +++ b/src/wp-admin/includes/class-wp-upgrader.php @@ -3171,7 +3171,7 @@ class WP_Automatic_Updater { * * @global string $wp_version * - * @param object|WP_Error $update_result The result of the core update. Includes the update offer and result. + * @param object $update_result The result of the core update. Includes the update offer and result. */ protected function after_core_update( $update_result ) { global $wp_version;