Moves the gallery shortcode styles to the head so it doesn't break XHTML validation.
By default when using the gallery shortcode the styles are placed into the post content which breaks XHTML validation. This plugin places the style into the head of the page using a look ahead to determine if the [gallery] shortcode is used in any posts.
This plugin uses ideas recommended in a patch located at http://trac.wordpress.org/attachment/ticket/6380/6380-style.diff
There is a ticket associated with this validation issue currently set for WordPress 2.9: http://core.trac.wordpress.org/ticket/10734
Special thanks to the original author of this plugin, Matt Martz, http://sivel.net.




