Support » Plugin: Media Library Categories » [Plugin: Media Library Categories] Image's ALT tags need html-safe entities

  • Hey – Thanks for the great plugin, merganser! One issue, though… When the image’s caption has a single quote in text, it’s breaking the html because the <img> tag’s attributes are using single quotes.
    Also, it would be cool if the text used for the ALT property came from the alt text in the WP dashboard… I just think it would be less confusing than taking it from the caption setting. Just my 2ยข.
    Thanks again!

    http://wordpress.org/extend/plugins/media-library-categories/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Can you tell me which file is affected ?

    Here’s what I did: In media-categories.php around line 856, I changed it to:

    $caption = htmlentities($attachment->post_title, ENT_QUOTES);

    I didn’t have time to address the ‘caption using alt text’ question I had above.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Media Library Categories] Image's ALT tags need html-safe entities’ is closed to new replies.