WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Luke Gedeon
    Member
    Posted 1 year 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.

    http://wordpress.org/extend/plugins/jetpack/

  2. Jeremy Herve
    Happiness Engineer
    Plugin Author

    Posted 1 year ago #

    You can submit patches through the Plugin trac, here:
    http://plugins.trac.wordpress.org/newticket?component=jetpack

    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

About this Topic