Remove debug cruft.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16488 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0b37bd0b6d
commit
42ce1825ac
|
@ -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=..
|
if ( ! empty($tax_url['query']) ) { // Custom taxonomies may only be accessable via ?taxonomy=..&term=..
|
||||||
parse_str($tax_url['query'], $query_vars);
|
parse_str($tax_url['query'], $query_vars);
|
||||||
$redirect['query'] = add_query_arg($query_vars, $redirect['query']);
|
$redirect['query'] = add_query_arg($query_vars, $redirect['query']);
|
||||||
error_log('ugly redir');
|
|
||||||
} else { // Taxonomy is accessable via a "pretty-URL"
|
} else { // Taxonomy is accessable via a "pretty-URL"
|
||||||
$redirect['path'] = $tax_url['path'];
|
$redirect['path'] = $tax_url['path'];
|
||||||
error_log('pretty redir');
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} elseif ( is_single() && strpos($wp_rewrite->permalink_structure, '%category%') !== false ) {
|
} elseif ( is_single() && strpos($wp_rewrite->permalink_structure, '%category%') !== false ) {
|
||||||
|
|
Loading…
Reference in New Issue