Advertisement
TraciBunkers

pluggable.php - WPBook error

Aug 25th, 2011
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. function wp_redirect($location, $status = 302) {
  2. global $is_IIS;
  3.  
  4. $location = apply_filters('wp_redirect', $location, $status);
  5. $status = apply_filters('wp_redirect_status', $status, $location);
  6.  
  7. if ( !$location ) // allows the wp_redirect filter to cancel a redirect
  8. return false;
  9.  
  10. $location = wp_sanitize_redirect($location);
  11.  
  12. if ( !$is_IIS && php_sapi_name() != 'cgi-fcgi' )
  13. status_header($status); // This causes problems on IIS and some FastCGI setups
  14.  
  15. header("Location: $location", true, $status);
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement