From 97e98a80f6e2abfdeeb08ae228791edfc5f610ae Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Fri, 19 May 2017 14:36:42 +0000 Subject: [PATCH] Dashboard: Use `get_user_locale()` for the news feed cache key. Since the feed URL can be localized the cache key has to be built with the same locale as the current user is using. Props iandunn. Fixes #40417. Built from https://develop.svn.wordpress.org/trunk@40793 git-svn-id: http://core.svn.wordpress.org/trunk@40651 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/dashboard.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/dashboard.php b/wp-admin/includes/dashboard.php index 124dea2206..af61be3fc1 100644 --- a/wp-admin/includes/dashboard.php +++ b/wp-admin/includes/dashboard.php @@ -980,7 +980,7 @@ function wp_dashboard_cached_rss_widget( $widget_id, $callback, $check_urls = ar $check_urls = array( $widgets[$widget_id]['url'] ); } - $locale = get_locale(); + $locale = get_user_locale(); $cache_key = 'dash_' . md5( $widget_id . '_' . $locale ); if ( false !== ( $output = get_transient( $cache_key ) ) ) { echo $output; diff --git a/wp-includes/version.php b/wp-includes/version.php index b09f70bfd5..7b9d705fef 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.8-beta1-40792'; +$wp_version = '4.8-beta1-40793'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.