Can anyone tell me why we are getting spaces and line breaks in code that should be rock solid out of wordpress?
- If you visit this page: http://lab.focusww.com/product/conway-stewart-wordsworth-shingle-fountain-pen/
- enter you email address (works with gmail) and submit
- check your email and find a message from 'Chatterley Luxuries and Pen Time '
- notice the broken image in the middle of the email
When I look at the broken image's url I see this:
http (there is a line break here followed by a space)
://lab.focusww.com/wp-content/uploads/2012/11/shingle-wordsworth-300x195.jpg
Note the line break.
This image is created using a plugin we wrote. It uses Wordpress's built in function to generate the product's thumbnail and email it. we are using
get_the_post_thumbnail($_product->ID, 'medium')
Wordpress uses this thumbnail function all the time on our site. Can you guys give us any clue where the extra space or line break would be added? I don't want to waste anyone's time, we've been working on this for 5 days.
Thanks for any help.
(Note, if you need more details, please give a chance to elaborate before killing/deleting my question. Some editors won't even give you 8 hours to respond or react. I welcome any suggestions to make this a better question.)
