From 696f7b6c74f1f9635b39187e8d4328c81d46d2a3 Mon Sep 17 00:00:00 2001 From: real_nowhereman Date: Wed, 19 Mar 2008 19:00:43 +0000 Subject: [PATCH] should fix redirect --- fp-includes/core/core.utils.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/fp-includes/core/core.utils.php b/fp-includes/core/core.utils.php index d83d930..8289525 100644 --- a/fp-includes/core/core.utils.php +++ b/fp-includes/core/core.utils.php @@ -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(); }