wordpress icon indicating copy to clipboard operation
wordpress copied to clipboard

Custom arguments truncated to one character

Open andtrev opened this issue 8 years ago • 0 comments

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?

andtrev avatar Dec 23 '17 06:12 andtrev