Ticket #35344: 35344.diff
File 35344.diff, 622 bytes (added by , 9 years ago) |
---|
-
src/wp-includes/query.php
4956 4956 function wp_old_slug_redirect() { 4957 4957 global $wp_query, $wp_rewrite; 4958 4958 4959 if ( get_queried_object() ) {4960 return;4961 }4962 4963 4959 if ( '' !== $wp_query->query_vars['name'] ) : 4964 4960 global $wpdb; 4965 4961 … … 5015 5011 $link = user_trailingslashit( trailingslashit( $link ) . $endpoint[1] ); 5016 5012 } 5017 5013 } 5014 } else { 5015 // If it wasn't a 404, then it's going to be handled elsewhere. 5016 return; 5018 5017 } 5019 5018 5020 5019 /**