• When this plugin is active and I run a WP CLI command, it shows me the following notice:
    Notice: Undefined index: QUERY_STRING in /home/NANANA/NANANA/my-wp-site/wp-content/plugins/disable-everything/disable-everything.php on line 48

    Sure, it’s a notice, not an error, but running many commands produces clutter in the terminal window.

Viewing 1 replies (of 1 total)
  • jandevries

    (@jandevries)

    Got the same output when running a WordPress script through CLI. The issue is that $_SERVER is not available when the script is run from the command line. I think an extra check is needed to see if $_SERVER is set or not before the preg_match done on line 48.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.