WP_Upgrader::__construct( WP_Upgrader_Skin $skin = null )

In this article

Construct the upgrader with a skin.

Parameters

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

Default:null

Source

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

Changelog

VersionDescription
2.8.0Introduced.

User Contributed Notes

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