WP_Upgrader::init()

Initializes the upgrader.


Description

This will set the relationship between the skin being used and this upgrader, and also add the generic strings to WP_Upgrader::$strings.

Additionally, it will schedule a weekly task to clean up the temporary backup directory.


Top ↑

Source

File: wp-admin/includes/class-wp-upgrader.php. View all references

public function init() {
	$this->skin->set_upgrader( $this );
	$this->generic_strings();

	if ( ! wp_installing() ) {
		$this->schedule_temp_backup_cleanup();
	}
}


Top ↑

Changelog

Changelog
Version Description
6.3.0 Added the schedule_temp_backup_cleanup() task.
2.8.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.