Web Hosting
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: 404 only sometimes showing (white page of death)

Discussion in 'Misc WordPress Requests' started by roundmom, Oct 18, 2017.

  1. roundmom

    Guest

    Reply To: 404 only sometimes showing (white page of death), by roundmom

    This is the function I see around line 1210 of pluggable.php

    function wp_redirect($location, $status = 302) {
    global $is_IIS;

    /**
    * Filters the redirect location.
    *
    * @since 2.1.0
    *
    * @param string $location The path to redirect to.
    * @param int $status Status code to use.
    */
    $location = apply_filters( 'wp_redirect', $location, $status );

    /**
    * Filters the redirect status code.
    *
    * @since 2.3.0
    *
    * @param int $status Status code to use.
    * @param string $location The path to redirect to.
    */
    $status = apply_filters( 'wp_redirect_status', $status, $location );

    if ( ! $location )
    return false;

    $location = wp_sanitize_redirect($location);

    if ( !$is_IIS && PHP_SAPI != 'cgi-fcgi' )
    status_header($status); // This causes problems on IIS and some FastCGI setups

    header("Location: $location", true, $status); //THIS IS LINE 1210

    return true;
    }
    endif;

    Reply To: 404 only sometimes showing (white page of death)
     
    #1

Share This Page

Web Hosting