WordPress gallery_shortcode

I was looking for a carousel for WordPress, and found at least one that uses the gallery shortcode.

  1. WP's gallery editing works beautifully, precisely what a non-technical user needs.
  2. The generated HTML is (typically) horribly stupid.
    1. Each thumbnail wrapped in a separate DL: WTF? This just has to be a bug. Semantics, y'know?
    2. Everything is assigned a class: none are needed. Some aren't even used. Just use a root identifier and HTML elements for CSS selectors.
    3. CSS is inlined so can hardly be themed, and inserted invalidly.
    4. Duplicate (probably invalid, too) "title" attributes.

    Et cetera. Fail!

    Really I should file these complains against gallery_shortcode() in wp-includes/media.php, not just whine. Peeked at the code (lines 743-869): problems seem endemic. But, plugins/themes are offered the opportunity of bypassing this ugly code. Will they?


Notes

(None.)

(Appending notes disabled temporarily.)


Last modified 2010-08-04 21:42:01 +0000