Remove debug cruft.
git-svn-id: https://develop.svn.wordpress.org/trunk@16488 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
8ff8013fe7
commit
c7fd7b68d3
@ -168,10 +168,8 @@ function redirect_canonical($requested_url=null, $do_redirect=true) {
|
||||
if ( ! empty($tax_url['query']) ) { // Custom taxonomies may only be accessable via ?taxonomy=..&term=..
|
||||
parse_str($tax_url['query'], $query_vars);
|
||||
$redirect['query'] = add_query_arg($query_vars, $redirect['query']);
|
||||
error_log('ugly redir');
|
||||
} else { // Taxonomy is accessable via a "pretty-URL"
|
||||
$redirect['path'] = $tax_url['path'];
|
||||
error_log('pretty redir');
|
||||
}
|
||||
}
|
||||
} elseif ( is_single() && strpos($wp_rewrite->permalink_structure, '%category%') !== false ) {
|
||||
|
Loading…
Reference in New Issue
Block a user