diff --git a/wp-admin/includes/theme-install.php b/wp-admin/includes/theme-install.php index 6ec7966cd7..161f67c58b 100644 --- a/wp-admin/includes/theme-install.php +++ b/wp-admin/includes/theme-install.php @@ -122,9 +122,8 @@ function install_theme_search($page) { add_action('install_themes_dashboard', 'install_themes_dashboard'); function install_themes_dashboard() { ?> -

WordPress Theme Directory or upload a theme in .zip format via this page.') ?>

+

-

' . __('[need help?]') . '') ?>


@@ -133,13 +132,8 @@ function install_themes_dashboard() { Author: Searches for themes created by the Author, or which the Author contributed to.') ?>

-

-

-
- - - -
+

+

@@ -240,6 +234,19 @@ function install_themes_updated($page = 1) { display_themes($api->themes, $api->info['page'], $api->info['pages']); } +add_action('install_themes_upload', 'install_themes_upload', 10, 1); +function install_themes_upload() { +?> +

+

+
+ + + +
+ - - - - - - - - - - - - - - - - - - - - - - - '; - - foreach( (array) $themes as $theme ){ - if ( is_object($theme) ) - $theme = (array) $theme; - - $title = wp_kses($theme['name'], $themes_allowedtags); - $description = wp_kses($theme['description'], $themes_allowedtags); - $version = wp_kses($theme['version'], $themes_allowedtags); - - $name = strip_tags($title . ' ' . $version); - - $author = $theme['author']; - if( ! empty($theme['author']) ) - $author = ' ' . sprintf( __('By %s'), $author ) . '.'; - - $author = wp_kses($author, $themes_allowedtags); - - if( isset($theme['homepage']) ) - $title = '' . $title . ''; - - $action_links = array(); - $action_links[] = '' . __('Install') . ''; - - $action_links = apply_filters('theme_install_action_links', $action_links, $theme); - ?> - - - - - - - - - -
', __('No themes match your request.'), '
-
-
-
<?php _e('5 stars') ?>
-
<?php _e('4 stars') ?>
-
<?php _e('3 stars') ?>
-
<?php _e('2 stars') ?>
-
<?php _e('1 star') ?>
-
-