diff --git src/wp-admin/includes/dashboard.php src/wp-admin/includes/dashboard.php
index 7ebbe5fa41..8c5daef7dd 100644
|
|
|
function wp_dashboard_cached_rss_widget( $widget_id, $callback, $check_urls = ar
|
| 982 | 982 | |
| 983 | 983 | $locale = get_locale(); |
| 984 | 984 | $cache_key = 'dash_' . md5( $widget_id . '_' . $locale ); |
| 985 | | |
| 986 | | /* |
| 987 | | * Clear the cached 4.7 w.org feed markup during the upgrade to 4.8.0. |
| 988 | | * |
| 989 | | * This wasn't done in wp-admin/includes/upgrade.php because that would |
| 990 | | * trigger an upgrade screen for users, and it's not worth the UX cost |
| 991 | | * for such a small change. |
| 992 | | * |
| 993 | | * @todo This is a temporary hack for 4.8.0 only, and should be removed in 4.8.1. |
| 994 | | */ |
| 995 | | if ( 'dashboard_primary' === $widget_id && false !== strpos( get_transient( $cache_key ), 'rssSummary' ) ) { |
| 996 | | delete_transient( $cache_key ); |
| 997 | | } |
| 998 | | |
| 999 | 985 | if ( false !== ( $output = get_transient( $cache_key ) ) ) { |
| 1000 | 986 | echo $output; |
| 1001 | 987 | return true; |