Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I created my own theme and I use on two different websites, along with a very few plugins (among them, qTranslate!). I noticed that recently (I don't think it was happening before) that all my image captions containing apostrophes are broken. The text is simply cut starting from the apostrophe when I update the post.

Can you confirm that it is a bug with Wordpress 3.3.1? I'm trying to find the culprit here :)

If it's indeed a bug (or the normal behavior), is there a way so that I can fix it ? Using a filter would be nice, I really don't like hacking the core code.

Thanks a lot :)

PS: I noticed that by disabling qTranslate the problem disappears. The problem happens exactly when we EDIT the post, it's at that time that the content is screwed up.

share|improve this question
    
Your problem could be that you used ' instead of ´. This could intercept some of your functions that are wrapped in single apostrophes instead of double ". –  kaiser Feb 28 '12 at 9:11
    
So when you usually type something in the caption, you use ´ ? It's not very natural for the authors and editors, as this character is not available on the keyboard... –  Jordy Meow Feb 29 '12 at 1:48
    
Ehm, wait a moment. Caption comes from the DB, gets sanitized. That's why it doesn't and won't (ever) work. Default behavior - I missread your question or missunderstood something (dunno). –  kaiser Feb 29 '12 at 2:14
1  
I edited my question and added a PS. The problem comes from qTranslate... Without qTranslate, I have no problems with the quotes in the caption! And when use it, the problem happens exactly when I edit the post, it's at that time that the content is "sliced". If I edit my post, type my quotes normally, save, and go on the page, it works. If I edit it again and save it directly without doing anything, the content is dead... –  Jordy Meow Feb 29 '12 at 3:36
    
You should move this to their support channel. I don't use qTranslate and don't have the time to dig into their code. But +1 for tracing it down (happens in here not that often :) –  kaiser Feb 29 '12 at 12:12
show 1 more comment

closed as too localized by toscho Jan 2 '13 at 23:16

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.