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
This commit is contained in:
John Blackbourn 2016-03-14 22:42:36 +00:00
parent c0d39a1987
commit 6152c81dd1

View File

@ -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;