Skip to content

Commit 596a24c

Browse files
Themes: Remove the "Featured" tab on Add Themes screen.
Themes displayed in this tab were actually random, and have not been selected to be featured to new WordPress users. The tab had already been removed from the Theme Directory, and with this change, the options in the admin area and in the directory will match again. The "Popular" tab is now displayed instead as the default view. Props poena, kjellr, celloexpressions. Fixes #49487. See #meta5044. git-svn-id: https://develop.svn.wordpress.org/trunk@50813 602fd350-edb4-49c9-b593-d223f7449a82
1 parent aa62fdb commit 596a24c

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

src/js/_enqueues/wp/theme.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1965,7 +1965,7 @@ themes.RunInstaller = {
19651965
// Set up the view.
19661966
// Passes the default 'section' as an option.
19671967
this.view = new themes.view.Installer({
1968-
section: 'featured',
1968+
section: 'popular',
19691969
SearchView: themes.view.InstallerSearch
19701970
});
19711971

@@ -2032,12 +2032,12 @@ themes.RunInstaller = {
20322032
/*
20332033
* Handles sorting / browsing routes.
20342034
* Also handles the root URL triggering a sort request
2035-
* for `featured`, the default view.
2035+
* for `popular`, the default view.
20362036
*/
20372037
themes.router.on( 'route:sort', function( sort ) {
20382038
if ( ! sort ) {
2039-
sort = 'featured';
2040-
themes.router.navigate( themes.router.baseUrl( '?browse=featured' ), { replace: true } );
2039+
sort = 'popular';
2040+
themes.router.navigate( themes.router.baseUrl( '?browse=popular' ), { replace: true } );
20412041
}
20422042
self.view.sort( sort );
20432043

src/wp-admin/theme-install.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
__( 'https://wordpress.org/themes/' )
108108
) . '</p>' .
109109
'<p>' . __( 'You can Search for themes by keyword, author, or tag, or can get more specific and search by criteria listed in the feature filter.' ) . ' <span id="live-search-desc">' . __( 'The search results will be updated as you type.' ) . '</span></p>' .
110-
'<p>' . __( 'Alternately, you can browse the themes that are Featured, Popular, or Latest. When you find a theme you like, you can preview it or install it.' ) . '</p>' .
110+
'<p>' . __( 'Alternately, you can browse the themes that are Popular or Latest. When you find a theme you like, you can preview it or install it.' ) . '</p>' .
111111
'<p>' . sprintf(
112112
/* translators: %s: /wp-content/themes */
113113
__( 'You can Upload a theme manually if you have already downloaded its ZIP archive onto your computer (make sure it is from a trusted and original source). You can also do it the old-fashioned way and copy a downloaded theme&#8217;s folder via FTP into your %s directory.' ),
@@ -181,7 +181,6 @@
181181
</div>
182182

183183
<ul class="filter-links">
184-
<li><a href="#" data-sort="featured"><?php _ex( 'Featured', 'themes' ); ?></a></li>
185184
<li><a href="#" data-sort="popular"><?php _ex( 'Popular', 'themes' ); ?></a></li>
186185
<li><a href="#" data-sort="new"><?php _ex( 'Latest', 'themes' ); ?></a></li>
187186
<li><a href="#" data-sort="favorites"><?php _ex( 'Favorites', 'themes' ); ?></a></li>

0 commit comments

Comments
 (0)