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: preg_match(): Compilation failed at wp-db.php on line 1657

Discussion in 'Misc WordPress Requests' started by Pioneer Web Design, Nov 18, 2017.

  1. Pioneer Web Design

    Guest

    Reply To: preg_match(): Compilation failed at wp-db.php on line 1657, by Pioneer Web Design

    The complete set of code we are discussing is:


    /**
    * Send a referrer policy header so referrers are not sent externally from administration screens.
    *
    * @since 4.9.0
    */
    function wp_admin_headers() {
    $policy = 'same-origin';

    /**
    * Filters the admin referrer policy header value. Default 'same-origin'.
    *
    * @since 4.9.0
    * @link https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy
    *
    * @param string $policy The referrer policy header value.
    */
    $policy = apply_filters( 'admin_referrer_policy', $policy );

    header( sprintf( 'Referrer-Policy: %s', $policy ) );
    }


    Can you review with your host, your install with the issue, that nothing is affected the referrer headers?

    As far as I can see, all this does is force the referrer URL’s to not have query vars (?var=value), such as usernames or other data not needed to be shared across sites.

    Please review:

    https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy

    https://blog.mozilla.org/security/2015/01/21/meta-referrer/

    I don’t think it’s a PHP version issue as I am sure core has tested at PHP5.5XX

    https://wordpress.org/about/requirements/

    You may want to move to a host that offers PHP 7 regardless of the outcome of this issue. It’s faster and safer.

    Reply To: preg_match(): Compilation failed at wp-db.php on line 1657
     
    #1

Share This Page

Web Hosting