Theme_Upgrader_Skin::__construct( array $args = array() )

In this article

Constructor.

Description

Sets up the theme upgrader skin.

Parameters

$argsarrayoptional
The theme upgrader skin arguments to override default options.

Default:array()

Source

public function __construct( $args = array() ) {
	$defaults = array(
		'url'   => '',
		'theme' => '',
		'nonce' => '',
		'title' => __( 'Update Theme' ),
	);
	$args     = wp_parse_args( $args, $defaults );

	$this->theme = $args['theme'];

	parent::__construct( $args );
}

Changelog

VersionDescription
2.8.0Introduced.

User Contributed Notes

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