WP_Upgrader::__construct( WP_Upgrader_Skin $skin = null )

Construct the upgrader with a skin.


Parameters

$skin WP_Upgrader_Skin Optional
The upgrader skin to use. Default is a WP_Upgrader_Skin instance.

Default: null


Top ↑

Source

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

public function __construct( $skin = null ) {
	if ( null === $skin ) {
		$this->skin = new WP_Upgrader_Skin();
	} else {
		$this->skin = $skin;
	}
}


Top ↑

Changelog

Changelog
Version Description
2.8.0 Introduced.

Top ↑

User Contributed Notes

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