Changeset 1151
- Timestamp:
- 01/16/2015 02:19:54 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/index.php
r1149 r1151 17 17 'per_page' => 15, 18 18 'fields' => array_merge( $GLOBALS['theme_field_defaults'], array( 19 'parent' 19 'parent' => true, 20 20 ) ), 21 21 ); … … 23 23 if ( get_query_var( 'tag' ) ) { 24 24 $args['tag'][] = get_query_var( 'tag' ); 25 } else { 26 $args['browse'] = get_query_var( 'attachment' ) ? get_query_var( 'attachment' ) : 'featured'; 25 } 26 elseif ( get_query_var( 'author_name' ) ) { 27 $args['author'] = get_query_var( 'author_name' ); 28 } 29 else { 30 $args['browse'] = 'featured'; 31 32 if ( in_array( get_query_var( 'name' ), array( 'featured', 'popular', 'new' ) ) ) { 33 $args['browse'] = get_query_var( 'name' ); 34 } 27 35 } 28 36 $themes = themes_api( 'query_themes', $args );
Note: See TracChangeset
for help on using the changeset viewer.