Changeset 50813
- Timestamp:
- 05/05/2021 03:53:41 PM (4 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/_enqueues/wp/theme.js
r50547 r50813 1966 1966 // Passes the default 'section' as an option. 1967 1967 this.view = new themes.view.Installer({ 1968 section: ' featured',1968 section: 'popular', 1969 1969 SearchView: themes.view.InstallerSearch 1970 1970 }); … … 2033 2033 * Handles sorting / browsing routes. 2034 2034 * Also handles the root URL triggering a sort request 2035 * for ` featured`, the default view.2035 * for `popular`, the default view. 2036 2036 */ 2037 2037 themes.router.on( 'route:sort', function( sort ) { 2038 2038 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 } ); 2041 2041 } 2042 2042 self.view.sort( sort ); -
trunk/src/wp-admin/theme-install.php
r50505 r50813 108 108 ) . '</p>' . 109 109 '<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>' . 111 111 '<p>' . sprintf( 112 112 /* translators: %s: /wp-content/themes */ … … 182 182 183 183 <ul class="filter-links"> 184 <li><a href="#" data-sort="featured"><?php _ex( 'Featured', 'themes' ); ?></a></li>185 184 <li><a href="#" data-sort="popular"><?php _ex( 'Popular', 'themes' ); ?></a></li> 186 185 <li><a href="#" data-sort="new"><?php _ex( 'Latest', 'themes' ); ?></a></li>
Note: See TracChangeset
for help on using the changeset viewer.