Changeset 13703
- Timestamp:
- 05/14/2024 11:01:05 PM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/query-modifications.php
r13085 r13703 19 19 } 20 20 21 // Default to the ~featured~ popular view 22 if ( empty( $query->query ) ) { 21 // Default to the popular view if this is a default query (ignore `paged`, 22 // so that `/themes/page/2/` correctly loads popular results). 23 $query_vars = array_diff( array_keys( $query->query ), [ 'paged' ] ); 24 if ( empty( $query_vars ) ) { 23 25 $query->query_vars['browse'] = 'popular'; 24 26 }
Note: See TracChangeset
for help on using the changeset viewer.