Make WordPress Core


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

Upload theme from zip fixes. see #8652

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.