Jetpack by WordPress.com
$_SERVER is not available from CLI (2 posts)

  1. Luke Gedeon
    Posted 3 years ago #

    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.


  2. Jeremy Herve
    Jetpack Mechanic
    Plugin Author

    Posted 3 years ago #

    You can submit patches through the Plugin trac, here:

    We'll be happy to take a look and see if we can add your patch to the next Jetpack release!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Jetpack by WordPress.com
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic