unexpected T_ENDIF in pluggable.php
-
Hello –
I was upgrading my friend’s blog to latest and greatest version of WordPress and when I try to go the upgrade URL or even the home page I get the following message:
Parse error: syntax error, unexpected T_ENDIF in /home/painfcom/public_html/wp-includes/pluggable.php on line 392
The code for that area is:
// Cookie safe redirect. Works around IIS Set-Cookie bug. // https://support.microsoft.com/kb/q176113/ if ( !function_exists('wp_redirect') ) : function wp_redirect($location, $status = 302) { global $is_IIS; $location = apply_filters('wp_redirect', $location, $status); if ( !$location ) // allows the wp_redirect filter to cancel a redirect return false; $location = wp_sanitize_redirect($location); if ( $is_IIS ) { header("Refresh: 0;url=$location"); } else { if ( php_sapi_name() != 'cgi-fcgi' ) status_header($status); // This causes problems on IIS and some FastCGI setups } endif; if ( !function_exists('wp_sanitize_redirect') ) :
Any help would be greatly appreciated.
~Elyse
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘unexpected T_ENDIF in pluggable.php’ is closed to new replies.