Slight Coding standards update
git-svn-id: https://develop.svn.wordpress.org/trunk@13866 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b9682621d0
commit
cc26a706e8
|
@ -61,8 +61,10 @@ function redirect_canonical($requested_url=null, $do_redirect=true) {
|
||||||
$redirect_url = false;
|
$redirect_url = false;
|
||||||
|
|
||||||
// Notice fixing
|
// Notice fixing
|
||||||
if ( !isset($redirect['path']) ) $redirect['path'] = '';
|
if ( !isset($redirect['path']) )
|
||||||
if ( !isset($redirect['query']) ) $redirect['query'] = '';
|
$redirect['path'] = '';
|
||||||
|
if ( !isset($redirect['query']) )
|
||||||
|
$redirect['query'] = '';
|
||||||
|
|
||||||
if ( is_singular() && 1 > $wp_query->post_count && ($id = get_query_var('p')) ) {
|
if ( is_singular() && 1 > $wp_query->post_count && ($id = get_query_var('p')) ) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue