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:
parent
c0d39a1987
commit
6152c81dd1
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue