From d36556bca2526139f64265b7070f609d4299d0a7 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Thu, 5 May 2011 17:33:19 +0000 Subject: [PATCH] Use int for redirect code. props niallkennedy, fixes #17321. git-svn-id: https://develop.svn.wordpress.org/trunk@17810 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/query.php b/wp-includes/query.php index 07259c6110..fb50b72d87 100644 --- a/wp-includes/query.php +++ b/wp-includes/query.php @@ -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; }