From fb7b50f609b18e121b6ece5ad3a10e900ef45c3b Mon Sep 17 00:00:00 2001 From: oskosk Date: Tue, 27 Feb 2018 13:10:50 -0300 Subject: [PATCH] Add changelog entry for #8664 --- readme.txt | 1 + to-test.md | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/readme.txt b/readme.txt index 61965010a4c40..f343604f3f059 100644 --- a/readme.txt +++ b/readme.txt @@ -125,6 +125,7 @@ There are opportunities for developers at all levels to contribute. [Learn more * Search: Move any active search widgets to the inactive list if you disable the search module. * Search: Only log mysql and ES query times that are less than 60 seconds. There are some outliers that mess up our stats. * Sync: Improved the way widget titles are synchronized to WordPress.com servers when widgets are saved or updated. +* Twitter Cards: Added new jetpack_twitter_image_default filter to allow themes and plugins to customize twitter:image when no suitable image is found automatically. * We updated the way we handle Jetpack's green color in out stylesheets for better compatibility with Jetpack's new logo. **Improved compatibility** diff --git a/to-test.md b/to-test.md index 70a3d3ad802af..36d2d9be087d5 100644 --- a/to-test.md +++ b/to-test.md @@ -131,6 +131,23 @@ We now move any active Jetpack Search widgets to the inactive list if you disabl 3. Refresh the page and verify that the search module is still disabled. 4. Visit the widgets configuration page and make sure that the widget you added in step one is now listed at the top of the inactive widgets list. +### Twitter Cards + +A new filter jetpack_twitter_image_default was added to allow themes and plugins to customize twitter:image when no suitable image is found automatically. + +To test: + +Include this snippet: + + ``` + function my_twitter_image_default ($url) { + return 'http://asdf.com/89asdf.gif'; + } + add_filter( 'jetpack_twitter_cards_image_default', 'my_twitter_image_default' ); + ``` +* Fetch your site's home page, and a post page that wouldn't otherwise have a Twitter image set. Verify that they both now include ``. + + ### WooCommerce analytics * Use a test site which is connected with Jetpack and has WooCommerce active