Slight Coding standards update
git-svn-id: http://svn.automattic.com/wordpress/trunk@13866 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f3e9d332d2
commit
8ad6b78d44
|
@ -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