Changeset 10650
- Timestamp:
- 02/25/2009 11:43:30 PM (17 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 2 edited
-
includes/theme-install.php (modified) (2 diffs)
-
theme-install.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/theme-install.php
r10606 r10650 243 243 244 244 add_action('install_themes_upload', 'install_themes_upload', 10, 1); 245 function install_themes_upload( ) {245 function install_themes_upload($page = 1) { 246 246 ?> 247 247 <h4><?php _e('Install a theme in .zip format') ?></h4> 248 248 <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') ?>"> 250 250 <?php wp_nonce_field( 'theme-upload') ?> 251 251 <input type="file" name="themezip" /> … … 521 521 522 522 523 add_action('install_themes_ upload', 'upload_theme');523 add_action('install_themes_do_upload', 'upload_theme'); 524 524 function upload_theme() { 525 525 -
trunk/wp-admin/theme-install.php
r10590 r10650 36 36 $tabs['updated'] = __('Recently Updated'); 37 37 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. 39 39 40 40 $tabs = apply_filters('install_themes_tabs', $tabs );
Note: See TracChangeset
for help on using the changeset viewer.