Whitespace & semantics
Remove check for wp_add_script_data()

It never made it into core so will never exist.
Fix issues when post contains subqueries
Set version to 1.3