install_theme_information()

最后更新于:2021-11-27 07:36:09

install_theme_information()

Display theme information in dialog box form.

源文件

文件: gc-admin/includes/theme-install.php

function install_theme_information() {
	global $gc_list_table;

	$theme = themes_api( 'theme_information', array( 'slug' => gc_unslash( $_REQUEST['theme'] ) ) );

	if ( is_gc_error( $theme ) ) {
		gc_die( $theme );
	}

	iframe_header( __( 'Theme Installation' ) );
	if ( ! isset( $gc_list_table ) ) {
		$gc_list_table = _get_list_table( 'GC_Theme_Install_List_Table' );
	}
	$gc_list_table->theme_installer_single( $theme );
	iframe_footer();
	exit;
}