From 9889311217817aaeb9ac5ef9214798384164d2d1 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Sun, 12 Jul 2015 22:06:56 +0000 Subject: [PATCH] Append the current locale to dashboard RSS widget cache keys so they refresh accordingly when the locale is changed. Fixes #32804 Props andg git-svn-id: https://develop.svn.wordpress.org/trunk@33183 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/dashboard.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wp-admin/includes/dashboard.php b/src/wp-admin/includes/dashboard.php index 80030bfa70..6f23631795 100644 --- a/src/wp-admin/includes/dashboard.php +++ b/src/wp-admin/includes/dashboard.php @@ -876,7 +876,8 @@ function wp_dashboard_cached_rss_widget( $widget_id, $callback, $check_urls = ar $check_urls = array( $widgets[$widget_id]['url'] ); } - $cache_key = 'dash_' . md5( $widget_id ); + $locale = get_locale(); + $cache_key = 'dash_' . md5( $widget_id ) . '_' . $locale; if ( false !== ( $output = get_transient( $cache_key ) ) ) { echo $output; return true;