SparkPost / wordpress-sparkpost

WordPress plugin to use SparkPost email
https://wordpress.org/plugins/sparkpost/
20 stars 15 forks source link

convert to json obj #153

Closed thehungrycoder closed 4 years ago

thehungrycoder commented 4 years ago

Seems it's requiring json object instead of json array representation. not sure why! is something changed at sparkpost api level? In such case it's not wordpress 5.5 related!

Please feel free to make any changes to this PR. If you need me to make other changes, I can aim that end of the day or tomorrow.

re: 2nd issue of

Warning: Invalid argument supplied for foreach() in /home/customer/www/fluxwebdesign7.be/public_html/customer/testdirk/wp-content/plugins/sparkpost/mailer.http.class.php on line 453

may be for some reason $this->createHeader is returning something unexpected! it needs more investigation! but this is just an warning not an actual error.

bkemper commented 4 years ago

Yay! I was about to confirm locally that the hotfix is working.

Screen Shot 2020-08-13 at 11 15 46 AM
thehungrycoder commented 4 years ago

WPSP_PLUGIN_VERSION

yes