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:
parent
b43acd115c
commit
9889311217
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user