Making WordPress.org

Changeset 9779


Ignore:
Timestamp:
04/27/2020 05:45:14 AM (5 years ago)
Author:
dd32
Message:

Bad Request plugin: Disable the notices for logged out users.
Only vulnerability scanners are tripping it now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/mu-plugins/pub/wporg-bad-request.php

    r9774 r9779  
    8787        // Log it if possible, and not on a sandbox
    8888        if ( ! defined( 'WPORG_SANDBOXED' ) || ! WPORG_SANDBOXED ) {
    89             if ( function_exists( 'wporg_error_reporter' ) ) {
     89            if ( function_exists( 'wporg_error_reporter' ) && ! empty( $_COOKIE ) ) {
    9090                wporg_error_reporter( E_USER_NOTICE, "400 Bad Request: $reference", __FILE__, __LINE__ );
    9191            }
Note: See TracChangeset for help on using the changeset viewer.