[ Index ]

WordPress 5.4.1

[ Index ]     [ Classes ]     [ Functions ]     [ Variables ]     [ Constants ]     [ Statistics ]    




/wp-admin/includes/ -> class-core-upgrader.php (summary)

Upgrade API: Core_Upgrader class

File Size: 415 lines (15 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 1 file

Defines 1 class

Core_Upgrader:: (4 methods):

Class: Core_Upgrader  - X-Ref

Core class used for updating core.

It allows for WordPress to upgrade itself in combination with
the wp-admin/includes/update-core.php file.

upgrade_strings()   X-Ref
Initialize the upgrade strings.

upgrade( $current, $args = array()   X-Ref
Upgrade WordPress core.

param: object $current Response object for whether WordPress is current.
param: array  $args {
return: string|false|WP_Error New WordPress version on success, false or WP_Error on failure.

should_update_to_version( $offered_ver )   X-Ref
Determines if this WordPress Core version should update to an offered version or not.

param: string $offered_ver The offered version, of the format x.y.z.
return: bool True if we should update to the offered version, otherwise false.

check_files()   X-Ref
Compare the disk file checksums against the expected checksums.

return: bool True if the checksums match, otherwise false.

Generated: Tue May 19 15:51:04 2020 Cross-referenced by PHPXref 0.7.1