Changeset 10667
- Timestamp:
- 02/27/2009 08:23:30 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/theme-install.php
r10656 r10667 250 250 ?> 251 251 <h4><?php _e('Install a theme in .zip format') ?></h4> 252 <p><?php _e('If you have a theme in a .zip format, You may install it by uploading it here.') ?></p>252 <p><?php _e('If you have a theme in a .zip format, you may install it by uploading it here.') ?></p> 253 253 <form method="post" enctype="multipart/form-data" 254 254 action="<?php echo admin_url('theme-install.php?tab=do_upload') ?>"><?php wp_nonce_field( 'theme-upload') ?> … … 489 489 490 490 echo '<div class="wrap">'; 491 echo '<h2>', sprintf( __('Installing Theme from file: %s'), basename($filename) ), '</h2>';491 echo '<h2>', sprintf( __('Installing theme from file: %s'), basename($filename) ), '</h2>'; 492 492 493 493 //Handle a newly uploaded file, Else assume it was … … 525 525 526 526 echo '<div class="wrap">'; 527 echo '<h2>', sprintf( __('Installing Theme: %s'), $api->name . ' ' . $api->version ), '</h2>';527 echo '<h2>', sprintf( __('Installing theme: %s'), $api->name . ' ' . $api->version ), '</h2>'; 528 528 529 529 do_theme_install($api->download_link, $api); … … 544 544 545 545 if ( empty($download_url) ) { 546 show_message( __('No theme Specified') );546 show_message( __('No theme specified') ); 547 547 return; 548 548 } … … 579 579 $install_actions = apply_filters('install_theme_complete_actions', array( 580 580 //'activate_theme' => '<a href="' . wp_nonce_url('themes.php?action=activate&theme=' . $theme_file, 'activate-theme_' . $theme_file) . '" title="' . attribute_escape(__('Activate this theme')) . '" target="_parent">' . __('Activate Theme') . '</a>', 581 'themes_page' => '<a href="' . admin_url('themes.php') . '" title="' . attribute_escape(__(' Goto themes page')) . '" target="_parent">' . __('Return to Themes page') . '</a>'581 'themes_page' => '<a href="' . admin_url('themes.php') . '" title="' . attribute_escape(__('Return to Themes page')) . '" target="_parent">' . __('Return to Themes page') . '</a>' 582 582 ), $theme_information, $theme_file); 583 583 if ( ! empty($install_actions) ) … … 599 599 600 600 if ( empty($package) ) { 601 show_message( __('No theme Specified') );601 show_message( __('No theme specified') ); 602 602 return; 603 603 } … … 670 670 $themes_dir = $wp_filesystem->wp_themes_dir(); 671 671 if ( empty($themes_dir) ) 672 return new WP_Error('fs_no_themes_dir', __('Unable to locate WordPress Themedirectory.'));672 return new WP_Error('fs_no_themes_dir', __('Unable to locate WordPress themes directory.')); 673 673 674 674 // And the same for the Content directory. 675 675 $content_dir = $wp_filesystem->wp_content_dir(); 676 676 if ( empty($content_dir) ) 677 return new WP_Error('fs_no_content_dir', __('Unable to locate WordPress Content directory (wp-content).'));677 return new WP_Error('fs_no_content_dir', __('Unable to locate WordPress content directory (wp-content).')); 678 678 679 679 $themes_dir = trailingslashit( $themes_dir ); … … 770 770 $themes_dir = $wp_filesystem->wp_themes_dir(); 771 771 if ( empty($themes_dir) ) 772 return new WP_Error('fs_no_themes_dir', __('Unable to locate WordPress Themedirectory.'));772 return new WP_Error('fs_no_themes_dir', __('Unable to locate WordPress themes directory.')); 773 773 774 774 //And the same for the Content directory. 775 775 $content_dir = $wp_filesystem->wp_content_dir(); 776 776 if ( empty($content_dir) ) 777 return new WP_Error('fs_no_content_dir', __('Unable to locate WordPress Content directory (wp-content).'));777 return new WP_Error('fs_no_content_dir', __('Unable to locate WordPress content directory (wp-content).')); 778 778 779 779 $themes_dir = trailingslashit( $themes_dir );
Note: See TracChangeset
for help on using the changeset viewer.