From dce1c9151433b1edc23e18909c1d072607b6161e Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 19 May 2017 18:59:58 +0000 Subject: [PATCH] Dashboard: Append the current locale to dashboard RSS widget cache key in `wp_dashboard_rss_control()`, for consistency with the changes to `wp_dashboard_cached_rss_widget()` in [33183] and [33192]. See #32804, #40702. git-svn-id: https://develop.svn.wordpress.org/trunk@40802 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 af61be3fc1..949802cf33 100644 --- a/src/wp-admin/includes/dashboard.php +++ b/src/wp-admin/includes/dashboard.php @@ -1062,7 +1062,8 @@ function wp_dashboard_rss_control( $widget_id, $form_inputs = array() ) { } } update_option( 'dashboard_widget_options', $widget_options ); - $cache_key = 'dash_' . md5( $widget_id ); + $locale = get_user_locale(); + $cache_key = 'dash_' . md5( $widget_id . '_' . $locale ); delete_transient( $cache_key ); }