Changeset 8946
- Timestamp:
- 06/13/2019 09:57:50 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php
r8918 r8946 496 496 497 497 // Add the browse/* views. 498 add_rewrite_tag( '%browse%', '(featured|popular|beta|blocks| new|favorites|adopt-me)' );498 add_rewrite_tag( '%browse%', '(featured|popular|beta|blocks|block|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', 'adopt-me' ) ) ) {734 !in_array( $wp_query->query['browse'], array( 'featured', 'popular', 'beta', 'blocks', 'block', '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', 'adopt-me' ) ) ) {778 if ( isset( $wp_query->query['browse'] ) && ! in_array( $wp_query->query['browse'], array( 'beta', 'blocks', 'block', 'featured', 'adopt-me' ) ) ) { 779 779 unset( $wp_query->query_vars['browse'] ); 780 780
Note: See TracChangeset
for help on using the changeset viewer.