Theme install: Remove unused strings.

fixes #29488.
Built from https://develop.svn.wordpress.org/trunk@29904


git-svn-id: http://core.svn.wordpress.org/trunk@29659 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dominik Schilling 2014-10-15 17:22:18 +00:00
parent 61819a36ea
commit 1ab3190ddc

View File

@ -27,12 +27,6 @@ if ( ! is_network_admin() ) {
$submenu_file = 'themes.php';
}
$sections = array(
'featured' => __( 'Featured Themes' ),
'popular' => __( 'Popular Themes' ),
'new' => __( 'Newest Themes' ),
);
$installed_themes = search_theme_directories();
foreach ( $installed_themes as $k => $v ) {
if ( false !== strpos( $k, '/' ) ) {
@ -57,9 +51,6 @@ wp_localize_script( 'theme', '_wpThemeSettings', array(
'error' => __( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server&#8217;s configuration. If you continue to have problems, please try the <a href="https://wordpress.org/support/">support forums</a>.' )
),
'installedThemes' => array_keys( $installed_themes ),
'browse' => array(
'sections' => $sections,
),
) );
wp_enqueue_script( 'theme' );