Changeset 8655
- Timestamp:
- 04/23/2019 06:36:56 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php
r8642 r8655 496 496 497 497 // Add the browse/* views. 498 add_rewrite_tag( '%browse%', '(featured|popular|beta|blocks|new|favorites )' );498 add_rewrite_tag( '%browse%', '(featured|popular|beta|blocks|new|favorites|adopt-me)' ); 499 499 add_permastruct( 'browse', 'browse/%browse%' ); 500 500 … … 732 732 // For any invalid values passed to browse, set it to featured instead 733 733 if ( !empty ( $wp_query->query ['browse'] ) && 734 !in_array( $wp_query->query['browse'], array( 'featured', 'popular','beta','blocks','new','favorites' ) ) ) {734 !in_array( $wp_query->query['browse'], array( 'featured', 'popular', 'beta', 'blocks', 'new', 'favorites', 'adopt-me' ) ) ) { 735 735 $wp_query->query['browse'] = 'featured'; 736 736 $wp_query->query_vars['browse'] = 'featured'; … … 776 776 777 777 // For /browse/ requests, we conditionally need to avoid querying the taxonomy for most views (as it's handled in code above) 778 if ( isset( $wp_query->query['browse'] ) && ! in_array( $wp_query->query['browse'], array( 'beta', 'blocks', 'featured' ) ) ) {778 if ( isset( $wp_query->query['browse'] ) && ! in_array( $wp_query->query['browse'], array( 'beta', 'blocks', 'featured', 'adopt-me' ) ) ) { 779 779 unset( $wp_query->query_vars['browse'] ); 780 780
Note: See TracChangeset
for help on using the changeset viewer.