Changeset 13223 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php
- Timestamp:
- 02/20/2024 01:16:24 AM (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php
r13221 r13223 1382 1382 1383 1383 wp_safe_redirect( $url, 301 ); 1384 die();1385 }1386 1387 // Existing tag with no plugins.1388 if (1389 is_tax( 'plugin_tags' ) &&1390 ! have_posts() &&1391 // Only redirect if only plugin_tags is queried. Other taxonomies cannot be handled.1392 count( $wp_query->tax_query->queried_terms ) <= 11393 ) {1394 // [1] => plugins [2] => tags [3] => example-plugin-name [4..] => random().1395 $path = explode( '/', $_SERVER['REQUEST_URI'] );1396 1397 wp_safe_redirect( home_url( '/search/' . urlencode( $path[3] ) . '/' ), 301 );1398 1384 die(); 1399 1385 }
Note: See TracChangeset
for help on using the changeset viewer.