should fix redirect

This commit is contained in:
real_nowhereman 2008-03-19 19:00:43 +00:00
parent 9ce8aacb2f
commit 696f7b6c74

View File

@ -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();
}