Ticket #29488: 29488.patch
File 29488.patch, 958 bytes (added by , 11 years ago) |
---|
-
src/wp-admin/theme-install.php
27 27 $submenu_file = 'themes.php'; 28 28 } 29 29 30 $sections = array(31 'featured' => __( 'Featured Themes' ),32 'popular' => __( 'Popular Themes' ),33 'new' => __( 'Newest Themes' ),34 );35 36 30 $installed_themes = search_theme_directories(); 37 31 foreach ( $installed_themes as $k => $v ) { 38 32 if ( false !== strpos( $k, '/' ) ) { … … 57 51 '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>.' ) 58 52 ), 59 53 'installedThemes' => array_keys( $installed_themes ), 60 'browse' => array(61 'sections' => $sections,62 ),63 54 ) ); 64 55 65 56 wp_enqueue_script( 'theme' );