Docs: Correct @return
value for update_core()
and Core_Upgrader::upgrade()
.
See #48303. git-svn-id: https://develop.svn.wordpress.org/trunk@47099 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
af39b30e28
commit
80e4ef45f1
@ -57,7 +57,7 @@ class Core_Upgrader extends WP_Upgrader {
|
||||
* @type bool $do_rollback Whether to perform this "upgrade" as a rollback.
|
||||
* Default false.
|
||||
* }
|
||||
* @return null|false|WP_Error Null on success, false or WP_Error on failure.
|
||||
* @return string|false|WP_Error New WordPress version on success, false or WP_Error on failure.
|
||||
*/
|
||||
public function upgrade( $current, $args = array() ) {
|
||||
global $wp_filesystem;
|
||||
|
@ -880,7 +880,7 @@ $_new_bundled_files = array(
|
||||
*
|
||||
* @param string $from New release unzipped path.
|
||||
* @param string $to Path to old WordPress installation.
|
||||
* @return null|WP_Error Null on success, WP_Error on failure.
|
||||
* @return string|WP_Error New WordPress version on success, WP_Error on failure.
|
||||
*/
|
||||
function update_core( $from, $to ) {
|
||||
global $wp_filesystem, $_old_files, $_new_bundled_files, $wpdb;
|
||||
|
Loading…
x
Reference in New Issue
Block a user