Duplicate image captions
-
Thanks for this plug-in, which I have been directed to as the one I currently use is broken by the latest WP update to 3.6.
I have noticed a small glitch, which is that if I use a character in the title or caption which is represented by an ampersand character, both the title and the caption are displayed, in that order. The issue is caused by different ampersand characters being implemented by WP.
For example, the single inverted comma is represented by ' in the title, but by ’ in the caption. When your script checks to see if the title and caption are the same, it finds, of course, that they are different, and proceeds to display them both.
In the database structure, both the post_title and post_excerpt have the same collation (utf_general_ci), so I can see no reason why the characters should be represented differently.
I have hacked the script (version 2.28.3, removing lines 204-209) to prevent any caption text from being appended, but it’s not an elegant solution. Can you suggest something better?
Thanks
Richard
- The topic ‘Duplicate image captions’ is closed to new replies.