Use int for redirect code. props niallkennedy, fixes #17321.
git-svn-id: https://develop.svn.wordpress.org/trunk@17810 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
279df65037
commit
d36556bca2
@ -3512,7 +3512,7 @@ function wp_old_slug_redirect() {
|
||||
if ( !$link )
|
||||
return;
|
||||
|
||||
wp_redirect($link, '301'); // Permanent redirect
|
||||
wp_redirect( $link, 301 ); // Permanent redirect
|
||||
exit;
|
||||
endif;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user