Skip to content
This repository has been archived by the owner on May 6, 2021. It is now read-only.

Custom arguments truncated to one character #64

Open
andtrev opened this issue Dec 23, 2017 · 0 comments
Open

Custom arguments truncated to one character #64

andtrev opened this issue Dec 23, 2017 · 0 comments

Comments

@andtrev
Copy link

andtrev commented Dec 23, 2017

I'm adding custom arguments into the header, all is fine until it hits the foreach loop here: https://github.com/sendgrid/wordpress/blob/master/lib/sendgrid/class-sendgrid-translator.php#L415

As you can see it checks if there's an index, which in my case is always 0, and so it pulls the first character from the string and passes that along instead of the entire string. Should it be also checking if it's an array and isset index, else it just passes on the whole value?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant