[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

Upgrade API: Core_Upgrader class

File Size: 424 lines (15 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 1 file
 wp-admin/includes/update-core.php

Defines 1 class

Core_Upgrader:: (4 methods):
  upgrade_strings()
  upgrade()
  should_update_to_version()
  check_files()


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.

Note: Newly introduced functions and methods cannot be used here.
All functions must be present in the previous version being upgraded from
as this file is used there too.

upgrade_strings()   X-Ref
Initializes the upgrade strings.


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

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

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

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

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

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



Generated : Sat Nov 23 08:20:01 2024 Cross-referenced by PHPXref