Use int for redirect code. props niallkennedy, fixes #17321.
git-svn-id: http://svn.automattic.com/wordpress/trunk@17810 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
94c19a9f57
commit
1379f7a976
|
@ -3512,7 +3512,7 @@ function wp_old_slug_redirect() {
|
||||||
if ( !$link )
|
if ( !$link )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
wp_redirect($link, '301'); // Permanent redirect
|
wp_redirect( $link, 301 ); // Permanent redirect
|
||||||
exit;
|
exit;
|
||||||
endif;
|
endif;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue