install_theme_information() - WordPress 函数参考中文文档

返回介绍

install_theme_information()

发布于 2017-09-11 字数1533 浏览 804 评论 0

install_theme_information()

Display theme information in dialog box form.


描述


源代码

File: wp-admin/includes/theme-install.php

function install_theme_information() {
	global $wp_list_table;

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

	if ( is_wp_error( $theme ) )
		wp_die( $theme );

	iframe_header( __('Theme Install') );
	if ( ! isset( $wp_list_table ) ) {
		$wp_list_table = _get_list_table('WP_Theme_Install_List_Table');
	}
	$wp_list_table->theme_installer_single( $theme );
	iframe_footer();
	exit;
}

更新日志

Version 描述
2.8.0 Introduced.

相关函数

Uses

  • wp-admin/includes/theme.php:
    themes_api()
  • wp-admin/includes/list-table.php:
    _get_list_table()
  • wp-admin/includes/template.php:
    iframe_header()
  • wp-admin/includes/template.php:
    iframe_footer()
  • wp-includes/l10n.php:
    __()
  • wp-includes/formatting.php:
    wp_unslash()
  • wp-includes/functions.php:
    wp_die()
  • wp-includes/load.php:
    is_wp_error()
  • Show 3 more uses
    Hide more uses


User Contributed Notes

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

目前还没有任何评论,快来抢沙发吧!