install_theme_information

The timeline below displays how wordpress function install_theme_information has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 6.1

/**
 * Displays theme information in dialog box form.
 *
 * @since 2.8.0
 *
 * @global WP_Theme_Install_List_Table $wp_list_table
 */
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 Installation'));
    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;
}

WordPress Version: 4.9

/**
 * Display theme information in dialog box form.
 *
 * @since 2.8.0
 *
 * @global WP_Theme_Install_List_Table $wp_list_table
 */
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 Installation'));
    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;
}

WordPress Version: 4.3

/**
 * Display theme information in dialog box form.
 *
 * @since 2.8.0
 *
 * @global WP_Theme_Install_List_Table $wp_list_table
 */
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;
}

WordPress Version: 3.9

// add_action('install_themes_search', 'display_themes');
// add_action('install_themes_featured', 'display_themes');
// add_action('install_themes_new', 'display_themes');
// add_action('install_themes_updated', 'display_themes');
/**
 * Display theme information in dialog box form.
 *
 * @since 2.8.0
 */
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;
}

WordPress Version: 3.7

/**
 * Display theme information in dialog box form.
 *
 * @since 2.8.0
 */
function install_theme_information()
{
    global $tab, $themes_allowedtags, $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'));
    $wp_list_table->theme_installer_single($theme);
    iframe_footer();
    exit;
}