WordPress.org

Make WordPress Core

Changeset 10650


Ignore:
Timestamp:
02/25/2009 11:43:30 PM (9 years ago)
Author:
ryan
Message:

Upload theme from zip fixes. see #8652

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/theme-install.php

    r10606 r10650  
    243243
    244244add_action('install_themes_upload', 'install_themes_upload', 10, 1);
    245 function install_themes_upload() {
     245function install_themes_upload($page = 1) {
    246246?>
    247247    <h4><?php _e('Install a theme in .zip format') ?></h4>
    248248    <p><?php _e('If you have a theme in a .zip format, You may install it by uploading it here.') ?></p>
    249     <form method="post" enctype="multipart/form-data" action="<?php echo admin_url('theme-install.php?tab=upload') ?>">
     249    <form method="post" enctype="multipart/form-data" action="<?php echo admin_url('theme-install.php?tab=do_upload') ?>">
    250250        <?php wp_nonce_field( 'theme-upload') ?>
    251251        <input type="file" name="themezip" />
     
    521521
    522522
    523 add_action('install_themes_upload', 'upload_theme');
     523add_action('install_themes_do_upload', 'upload_theme');
    524524function upload_theme() {
    525525
  • trunk/wp-admin/theme-install.php

    r10590 r10650  
    3636$tabs['updated']  = __('Recently Updated');
    3737
    38 $nonmenu_tabs = array('install', 'theme-information', 'upload'); //Valid actions to perform which do not have a Menu item.
     38$nonmenu_tabs = array('install', 'theme-information', 'do_upload'); //Valid actions to perform which do not have a Menu item.
    3939
    4040$tabs = apply_filters('install_themes_tabs', $tabs );
Note: See TracChangeset for help on using the changeset viewer.