$_SERVER is not available from CLI
-
I am working on a WP_CLI command and noticed that JetPack is relying on $_SERVER throughout the code. Since this info is not available from CLI, I am getting a bunch of Undefined index notices.
What is the preferred method for submitting a patch/pull-request for Jetpack? Or do you guys want to just take this one. Could almost search for $_SERVER and replace with an isset, but you may want to be a little smarter in a few places.
Anyway, let me know if I can help.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘$_SERVER is not available from CLI’ is closed to new replies.