facebook/wordpress — pull request #275 by niallkennedy (2012-10-11 18:45:01+00:00)
Title: OO social plugins. comments cleanup

## Social Plugins

Create class-driven builders for Facebook social plugins with outputs in HTML5 data-* attributes as well as XFBML. Includes some validation such as when a specified width is below the minimum width for the plugin and its selected options.

Existing code was outputting all site options for a social plugin as data-* attributes even if those options had no effect on the JS SDK interpreter or conversion to a strval was messy (example: `data-show-on="Array"`)

## Comments

Rework the comments code into more modular pieces callable by other plugins and better integrated into WordPress filters. There is currently an issue where Facebook does not return authorship data for an author authenticated with a non-Facebook account (AOL, Hotmail, Yahoo). We now omit author data in the `noscript` comments list if author data not found (instead of assuming array keys always present).

Comments are marked up as [Schema.org comments](http://schema.org/UserComments) by default. Extra semantic goodness + SEO, especially if the parent post is already marked up.

Comments now have the final markup cached instead of the comments array returned by Facebook. Should speed up page generation as a possibly large string does not have to be generated from a cached array.