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
This commit is contained in:
John Blackbourn 2015-07-12 22:06:56 +00:00
parent b43acd115c
commit 9889311217
1 changed files with 2 additions and 1 deletions

View File

@ -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;