Theme install: Remove unused strings.
fixes #29488. git-svn-id: https://develop.svn.wordpress.org/trunk@29904 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ab128698ad
commit
5829ccba9b
@ -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’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' );
|
||||
|
Loading…
Reference in New Issue
Block a user