should fix redirect
This commit is contained in:
parent
9ce8aacb2f
commit
696f7b6c74
@ -237,7 +237,12 @@ if (!function_exists('fnmatch')) {
|
||||
if (!$absolute_path)
|
||||
$location = BLOG_BASEURL . $location;
|
||||
|
||||
wp_redirect($location);
|
||||
if ( function_exists('wp_redirect') ) {
|
||||
wp_redirect($location);
|
||||
} else {
|
||||
header("Location: $location");
|
||||
}
|
||||
|
||||
exit();
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user