Theme_Upgrader_Skin::__construct() –

You appear to be a bot. Output may be restricted

Description

Constructor.

Sets up the theme upgrader skin.

Usage

Theme_Upgrader_Skin::__construct( $args );

Parameters

$args
( array ) optional – Optional. The theme upgrader skin arguments to override default options. Default empty array.

Returns

void

Source

File name: wordpress/wp-admin/includes/class-theme-upgrader-skin.php
Lines:

1 to 13 of 13
  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 );
  }
 

 View on GitHub View on Trac