Twitter Cards: Refactor into a class for Namespace purposes and to be consistent with other Jetpack code.
Twitter Cards: Refactor into a class for Namespace purposes and to be consistent with other Jetpack code.
Merge branch 'twitter-cards-class' of ssh://github.com/Automattic/jetpack into twitter-cards-class
Twitter Cards: Add a field on the sharing screen to configure the twitter:site tag.
Also modifiable from the jetpack_twitter_cards_site_tag filter
Publicize: Add filter to set the twitter:site tag if there's only one shared connection to Twitter.
Use twitter:site tag as default fallback for the 'via' attribute.
Twitter Cards: Add fallback for creator tag to user publicize connection.
Twitter Cards: Fallback for twitter:creator to user publicize connection.
Remove 10 post restriction for related posts module
Omnisearch: Allow filters on get_posts.

WPML filters the get_posts call and changes it to return only posts in
the current language. By default, get_posts does not apply filters. If
we add the attribute, 'suppress_filters'=>false, we allow that filter
in WPML to work normally.

Props: WPML.org
Add a `wpml-config.xml` file.

This lets WPML recognize which of our options are strings that may need
to be translated.

A share feature option is a WP option, so to make it translatable we
need to add it to wpml-config.xml file. When plugins use get_option,
they read values from the wp_options table, WPML can filter these calls
and provide translation to the values of these options.

A greeting text option is a WP option, so to make it translatable we
need to add it to wpml-config.xml file. When plugins use get_option,
they read values from the wp_options table, WPML can filter these calls
and provide translation to the values of these options.

Props: WPML.org
Top Posts: Let WPML filter the results to the current language.

Add a new filter, `jetpack_widget_get_top_posts` that lets third-party
plugins filter the results of the top posts widget to specifically
exclude certain posts if desired.

Also adds in compatibility code (compliments of the fine folks at
WPML.org) that removes posts that aren’t in the same language as the
current ui.
Switch to strict comparison.
Pull the ifcheck wrapper around everything.

Fix some whitespace and indentation.
Let WPML translate contact form additional fields.

Contact form additional fields can't be translated because they are
created on the fly. WPML can register dynamic strings to translation
with icl_translate function.

So let’s let WPML do it! :)

Props WPML.org
Twitter Cards: Fix fallback for twitter:site.

+ Improve Settings description.
Publicize: Improve fallback for Twitter:site card.

Choose one connection when there is more than one connection.
Twitter Cards: Publicize: Prioritize user connection.

Prioritze user connection rather than a global connection when setting the twitter:creator tag
Multisite: Hides main blog from the Jetpack list

The main blog *must* be connected in order for Jetpack Multisite to be useful.
The main blog was included in the list of blogs displayed at Network Admin > Jetpack > Sites.
This let to some confusion amongst users when bulk deactivating sites and not unchecking the
main blog site. It would look like everything had been disconnected. This patch removes the
main site from the list (It *has* to be connected to see the list anyways!).

Fixes and closes 271
Merge pull request #302 from Automattic/wpml-additions

Additions for better WPML compatability