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

Built from https://develop.svn.wordpress.org/trunk@36995


git-svn-id: http://core.svn.wordpress.org/trunk@36962 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
John Blackbourn 2016-03-14 22:43:27 +00:00
parent 2cee8966ab
commit 852f085d19
2 changed files with 2 additions and 2 deletions

View File

@ -3171,7 +3171,7 @@ class WP_Automatic_Updater {
* *
* @global string $wp_version * @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 ) { protected function after_core_update( $update_result ) {
global $wp_version; global $wp_version;

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.5-beta3-36994'; $wp_version = '4.5-beta3-36995';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.