Ads: Fix for wp jetpack warning that HTTP_HOST isn't set.#5874
Ads: Fix for wp jetpack warning that HTTP_HOST isn't set.#5874dereksmart merged 1 commit intomasterfrom
wp jetpack warning that HTTP_HOST isn't set.#5874Conversation
|
This feels kinda awkward, I'd almost expect that WP-CLI would set that server var automatically. |
|
Related: wp-cli/wp-cli#730 -- I guess their fix is just to document it and move on. Kinda kludgey, but whatevs. 🐑 |
|
@georgestephanis the variable wouldn't be used for anything ads related from the cli anyway, this will just ensure it doesn't spit out any warnings. |
|
Should we add this in class.jetpack.php or jetpack.php instead? There may be other places we would expect Perhaps something like |
|
Reproduced the issue, applied this and it effectively solves the issue, so LGTM 🐑 That said, maybe this can be wrapped in a condition checking |
|
branch-4.5 9e8a733 |
Changelog: add #5867 Changelog: add #5874 Changelog: add #5905 Changelog: add #5906 Changelog: add #5931 Changelog: add #5933 Changelog: add #5934 Bring over 4.4.2 changelog from branch-4.4 @see 18012a3 Changelog: add #5976, #5978, #5983 Changelog: add #5917 Changelog: add #5832 Changelog: add 4.4.2 release post link. CHangelog: add #5457 Changelog: add #5487 Changelog: add #5708 Changelog: add #5879 Changelog: add #5932 Changelog: add #5963 Changelog: add #5968 Changelog: add #5996 Changelog: add #5998 Changelog: add #5999 Changelog: add #6012 Changelog: add #6013 Changelog: add #6014 Changelog: add #6015 Changelog: add #6023 Changelog: add #6024 Changelog: add #6030 Changelog: add #5465 CHangelog: add #6063 Changelog: add #6025 Changelog: add #5974 Changelog: add #6059 Changelog: add #6046 Changelog: add #5418 Changelog: move things around and add missing information. Changelog: add #5565 Changelog: add #6087 Changelog: add #6095 Readme: add @tyxla to the list of contributors. Improved changelog for your readability and enjoyment updated the release date finalizing the changelog with a few more edits
This warning only manifests itself when running
wp jetpackfrom the command line. This fixes the warning by ensuring HTTP_HOST is set.