Make WordPress Core

Ticket #29488: 29488.patch

File 29488.patch, 958 bytes (added by ocean90, 11 years ago)
  • src/wp-admin/theme-install.php

     
    2727        $submenu_file = 'themes.php';
    2828}
    2929
    30 $sections = array(
    31         'featured' => __( 'Featured Themes' ),
    32         'popular'  => __( 'Popular Themes' ),
    33         'new'      => __( 'Newest Themes' ),
    34 );
    35 
    3630$installed_themes = search_theme_directories();
    3731foreach ( $installed_themes as $k => $v ) {
    3832        if ( false !== strpos( $k, '/' ) ) {
     
    5751                '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>.' )
    5852        ),
    5953        'installedThemes' => array_keys( $installed_themes ),
    60         'browse' => array(
    61                 'sections' => $sections,
    62         ),
    6354) );
    6455
    6556wp_enqueue_script( 'theme' );