install_themes_upload

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

WordPress Version: 6.5

/**
 * Displays a form to upload themes from zip files.
 *
 * @since 2.8.0
 */
function install_themes_upload()
{
    ?>
<p class="install-help"><?php 
    _e('If you have a theme in a .zip format, you may install or update it by uploading it here.');
    ?></p>
<form method="post" enctype="multipart/form-data" class="wp-upload-form" action="<?php 
    echo esc_url(self_admin_url('update.php?action=upload-theme'));
    ?>">
	<?php 
    wp_nonce_field('theme-upload');
    ?>
	<label class="screen-reader-text" for="themezip">
		<?php 
    /* translators: Hidden accessibility text. */
    _e('Theme zip file');
    ?>
	</label>
	<input type="file" id="themezip" name="themezip" accept=".zip" />
	<?php 
    submit_button(_x('Install Now', 'theme'), '', 'install-theme-submit', false);
    ?>
</form>
	<?php 
}

WordPress Version: 6.2

/**
 * Displays a form to upload themes from zip files.
 *
 * @since 2.8.0
 */
function install_themes_upload()
{
    ?>
<p class="install-help"><?php 
    _e('If you have a theme in a .zip format, you may install or update it by uploading it here.');
    ?></p>
<form method="post" enctype="multipart/form-data" class="wp-upload-form" action="<?php 
    echo esc_url(self_admin_url('update.php?action=upload-theme'));
    ?>">
	<?php 
    wp_nonce_field('theme-upload');
    ?>
	<label class="screen-reader-text" for="themezip">
		<?php 
    /* translators: Hidden accessibility text. */
    _e('Theme zip file');
    ?>
	</label>
	<input type="file" id="themezip" name="themezip" accept=".zip" />
	<?php 
    submit_button(__('Install Now'), '', 'install-theme-submit', false);
    ?>
</form>
	<?php 
}

WordPress Version: 6.1

/**
 * Displays a form to upload themes from zip files.
 *
 * @since 2.8.0
 */
function install_themes_upload()
{
    ?>
<p class="install-help"><?php 
    _e('If you have a theme in a .zip format, you may install or update it by uploading it here.');
    ?></p>
<form method="post" enctype="multipart/form-data" class="wp-upload-form" action="<?php 
    echo esc_url(self_admin_url('update.php?action=upload-theme'));
    ?>">
	<?php 
    wp_nonce_field('theme-upload');
    ?>
	<label class="screen-reader-text" for="themezip"><?php 
    _e('Theme zip file');
    ?></label>
	<input type="file" id="themezip" name="themezip" accept=".zip" />
	<?php 
    submit_button(__('Install Now'), '', 'install-theme-submit', false);
    ?>
</form>
	<?php 
}

WordPress Version: 5.8

/**
 * @since 2.8.0
 */
function install_themes_upload()
{
    ?>
<p class="install-help"><?php 
    _e('If you have a theme in a .zip format, you may install or update it by uploading it here.');
    ?></p>
<form method="post" enctype="multipart/form-data" class="wp-upload-form" action="<?php 
    echo self_admin_url('update.php?action=upload-theme');
    ?>">
	<?php 
    wp_nonce_field('theme-upload');
    ?>
	<label class="screen-reader-text" for="themezip"><?php 
    _e('Theme zip file');
    ?></label>
	<input type="file" id="themezip" name="themezip" accept=".zip" />
	<?php 
    submit_button(__('Install Now'), '', 'install-theme-submit', false);
    ?>
</form>
	<?php 
}

WordPress Version: 5.5

/**
 * @since 2.8.0
 */
function install_themes_upload()
{
    ?>
<p class="install-help"><?php 
    _e('If you have a theme in a .zip format, you may install or update it by uploading it here.');
    ?></p>
<form method="post" enctype="multipart/form-data" class="wp-upload-form" action="<?php 
    echo self_admin_url('update.php?action=upload-theme');
    ?>">
	<?php 
    wp_nonce_field('theme-upload');
    ?>
	<label class="screen-reader-text" for="themezip"><?php 
    _e('Theme zip file');
    ?></label>
	<input type="file" id="themezip" name="themezip" accept=".zip"/>
	<?php 
    submit_button(__('Install Now'), '', 'install-theme-submit', false);
    ?>
</form>
	<?php 
}

WordPress Version: 4.7

/**
 * @since 2.8.0
 */
function install_themes_upload()
{
    ?>
<p class="install-help"><?php 
    _e('If you have a theme in a .zip format, you may install it by uploading it here.');
    ?></p>
<form method="post" enctype="multipart/form-data" class="wp-upload-form" action="<?php 
    echo self_admin_url('update.php?action=upload-theme');
    ?>">
	<?php 
    wp_nonce_field('theme-upload');
    ?>
	<label class="screen-reader-text" for="themezip"><?php 
    _e('Theme zip file');
    ?></label>
	<input type="file" id="themezip" name="themezip" />
	<?php 
    submit_button(__('Install Now'), '', 'install-theme-submit', false);
    ?>
</form>
	<?php 
}

WordPress Version: 4.5

/**
 * @since 2.8.0
 */
function install_themes_upload()
{
    ?>
<p class="install-help"><?php 
    _e('If you have a theme in a .zip format, you may install it by uploading it here.');
    ?></p>
<form method="post" enctype="multipart/form-data" class="wp-upload-form" action="<?php 
    echo self_admin_url('update.php?action=upload-theme');
    ?>">
	<?php 
    wp_nonce_field('theme-upload');
    ?>
	<label class="screen-reader-text" for="themezip"><?php 
    _e('Theme zip file');
    ?></label>
	<input type="file" id="themezip" name="themezip" />
	<?php 
    submit_button(__('Install Now'), 'button', 'install-theme-submit', false);
    ?>
</form>
	<?php 
}

WordPress Version: 4.3

/**
 * @since 2.8.0
 */
function install_themes_upload()
{
    ?>
<p class="install-help"><?php 
    _e('If you have a theme in a .zip format, you may install it by uploading it here.');
    ?></p>
<form method="post" enctype="multipart/form-data" class="wp-upload-form" action="<?php 
    echo self_admin_url('update.php?action=upload-theme');
    ?>">
	<?php 
    wp_nonce_field('theme-upload');
    ?>
	<input type="file" name="themezip" />
	<?php 
    submit_button(__('Install Now'), 'button', 'install-theme-submit', false);
    ?>
</form>
	<?php 
}

WordPress Version: 3.9

// add_action('install_themes_dashboard', 'install_themes_dashboard');
function install_themes_upload()
{
    ?>
<p class="install-help"><?php 
    _e('If you have a theme in a .zip format, you may install it by uploading it here.');
    ?></p>
<form method="post" enctype="multipart/form-data" class="wp-upload-form" action="<?php 
    echo self_admin_url('update.php?action=upload-theme');
    ?>">
	<?php 
    wp_nonce_field('theme-upload');
    ?>
	<input type="file" name="themezip" />
	<?php 
    submit_button(__('Install Now'), 'button', 'install-theme-submit', false);
    ?>
</form>
	<?php 
}

WordPress Version: 3.7

function install_themes_upload($page = 1)
{
    ?>
<h4><?php 
    _e('Install a theme in .zip format');
    ?></h4>
<p class="install-help"><?php 
    _e('If you have a theme in a .zip format, you may install it by uploading it here.');
    ?></p>
<form method="post" enctype="multipart/form-data" class="wp-upload-form" action="<?php 
    echo self_admin_url('update.php?action=upload-theme');
    ?>">
	<?php 
    wp_nonce_field('theme-upload');
    ?>
	<input type="file" name="themezip" />
	<?php 
    submit_button(__('Install Now'), 'button', 'install-theme-submit', false);
    ?>
</form>
	<?php 
}