-
Notifications
You must be signed in to change notification settings - Fork 806
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sharing: merges the changes from wpcom as of 18th of June, 2015 #2269
Conversation
Previously used "Any Image" (`buttonBookmark`) type, which is confusing in the context of a front page where many posts exist (and may not include the actual post for which the Pin It button is rendered). This change will attempt to find an appropriate image to Pin from the post, falling back to Blavatars/Gravatars, and finally a blank image (or filtered value via Jetpack filter). See: https://[private link] See: https://github.com/Automattic/io/issues/374 Merges r118317-wpcom.
Allowing site owners to choose to override the default `buttonPin` single-image widget type. See: r118317 See: https://github.com/Automattic/io/issues/374#issuecomment-104190565 Merges r118401-wpcom.
Previously, only official buttons would render the single image view. This updates non-official button styles to use the same singular image view, and similarly respects the filter to override in case “Any Image” type is desired.
Pushed e80aff7 to simplify the JavaScript snippet insertion, since the stats should already be tracked when the user navigates to the share action (via Tested to be working on my test environment, both official and non-official styles, and with/without a filter to override the widget type to |
Read the code and tested as well, everything looks good to me! |
LGTM 👍 |
…onsistency Sharing: merges the changes from wpcom as of 18th of June, 2015
This PR replaces #2264.