WordPress gallery_shortcode
I was looking for a carousel for WordPress, and found at least one that uses the gallery shortcode.
- WP's gallery editing works beautifully, precisely what a non-technical user needs.
- The generated HTML is (typically) horribly stupid.
- Each thumbnail wrapped in a separate DL: WTF? This just has to be a bug. Semantics, y'know?
- Everything is assigned a class: none are needed. Some aren't even used. Just use a root identifier and HTML elements for CSS selectors.
- CSS is inlined so can hardly be themed, and inserted invalidly.
- Duplicate (probably invalid, too) "title" attributes.
Et cetera. Fail!
Really I should file these complains against
gallery_shortcode()inwp-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