Changeset 13196 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php
- Timestamp:
- 02/09/2024 03:15:54 AM (13 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php
r13195 r13196 1361 1361 // Existing tag with no plugins. 1362 1362 if ( 1363 ( is_tax() || is_category() || is_tag()) &&1363 is_tax( 'plugin_tags' ) && 1364 1364 ! have_posts() && 1365 ! is_tax( 'plugin_section' ) // All sections have something, or intentionally don't (favorites) 1365 // Only redirect if only plugin_tags is queried. Other taxonomies cannot be handled. 1366 count( $wp_query->tax_query->queried_terms ) <= 1 1366 1367 ) { 1367 1368 // [1] => plugins [2] => tags [3] => example-plugin-name [4..] => random(). … … 1375 1376 // This may occur due to WordPress's 1600 character search limit. 1376 1377 if ( 1377 1378 1379 1378 'search' === get_query_var( 'name' ) || 1379 ( isset( $_GET['s'] ) && ! get_query_var( 's' ) ) || 1380 ( is_search() && 0 === strlen( get_query_var( 's' ) ) ) 1380 1381 ) { 1381 1382 wp_safe_redirect( site_url( '/' ), 301 );
Note: See TracChangeset
for help on using the changeset viewer.