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
This commit is contained in:
parent
5ddd3f92e8
commit
97e98a80f6
|
@ -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;
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue