mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-03 22:27:04 +00:00
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
This commit is contained in:
@@ -1965,7 +1965,7 @@ themes.RunInstaller = {
|
||||
// Set up the view.
|
||||
// Passes the default 'section' as an option.
|
||||
this.view = new themes.view.Installer({
|
||||
section: 'featured',
|
||||
section: 'popular',
|
||||
SearchView: themes.view.InstallerSearch
|
||||
});
|
||||
|
||||
@@ -2032,12 +2032,12 @@ themes.RunInstaller = {
|
||||
/*
|
||||
* Handles sorting / browsing routes.
|
||||
* Also handles the root URL triggering a sort request
|
||||
* for `featured`, the default view.
|
||||
* for `popular`, the default view.
|
||||
*/
|
||||
themes.router.on( 'route:sort', function( sort ) {
|
||||
if ( ! sort ) {
|
||||
sort = 'featured';
|
||||
themes.router.navigate( themes.router.baseUrl( '?browse=featured' ), { replace: true } );
|
||||
sort = 'popular';
|
||||
themes.router.navigate( themes.router.baseUrl( '?browse=popular' ), { replace: true } );
|
||||
}
|
||||
self.view.sort( sort );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user