Theme_Upgrader_Skin::__construct()
最后更新于:2021-11-26 04:29:22
Theme_Upgrader_Skin::__construct( array$args=array())Constructor.
参数
- $args
-
(array) (Optional) The theme upgrader skin arguments to override default options.
Default value: array()
源文件
文件: gc-admin/includes/class-theme-upgrader-skin.php
public function __construct( $args = array() ) {
$defaults = array(
'url' => '',
'theme' => '',
'nonce' => '',
'title' => __( 'Update Theme' ),
);
$args = gc_parse_args( $args, $defaults );
$this->theme = $args['theme'];
parent::__construct( $args );
}