WP_Upgrader::__construct()publicWP 2.8.0

Construct the upgrader with a skin.

Method of the class: WP_Upgrader{}

No Hooks.

Return

null. Nothing (null).

Usage

$WP_Upgrader = new WP_Upgrader();
$WP_Upgrader->__construct( $skin );
$skin(WP_Upgrader_Skin)
The upgrader skin to use.
Default: WP_Upgrader_Skin instance

Changelog

Since 2.8.0 Introduced.

WP_Upgrader::__construct() code WP 6.5.2

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