Changeset 13396
- Timestamp:
- 03/28/2024 01:17:20 AM (4 months ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php
r13354 r13396 547 547 548 548 // Add the browse/* views. 549 add_rewrite_tag( '%browse%', '(featured|popular|beta|blocks|block|new|favorites|adopt-me|updated )' );549 add_rewrite_tag( '%browse%', '(featured|popular|beta|blocks|block|new|favorites|adopt-me|updated)' ); 550 550 add_permastruct( 'browse', 'browse/%browse%' ); 551 551 … … 796 796 if ( 797 797 ! empty ( $wp_query->query['browse'] ) && 798 ! in_array( $wp_query->query['browse'], array( 'featured', 'popular', 'beta', 'blocks', 'block', 'new', 'favorites', 'adopt-me', 'updated' ) )798 ! in_array( $wp_query->query['browse'], array( 'featured', 'popular', 'beta', 'blocks', 'block', 'new', 'favorites', 'adopt-me', 'updated' ) ) 799 799 ) { 800 800 $wp_query->query['browse'] = 'featured'; … … 813 813 'value' => gmdate( 'Y-m-d H:i:s', time() - YEAR_IN_SECONDS ), 814 814 'compare' => '>', 815 816 817 818 819 820 821 822 823 824 825 826 827 828 815 829 ]; 816 830 $wp_query->set( 'meta_query', $meta_query ); -
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-template.php
r13335 r13396 183 183 $noindex = true; 184 184 } elseif ( get_query_var( 'plugin_business_model' ) && get_query_var( 'browse' ) ) { 185 186 185 187 $noindex = true; 186 188 } elseif ( is_singular( 'plugin' ) && self::is_plugin_outdated() ) {
Note: See TracChangeset
for help on using the changeset viewer.