Append the current locale to dashboard RSS widget cache keys so they refresh accordingly when the locale is changed.

Fixes #32804
Props andg

Built from https://develop.svn.wordpress.org/trunk@33183


git-svn-id: http://core.svn.wordpress.org/trunk@33155 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
John Blackbourn 2015-07-12 22:07:25 +00:00
parent 50b32fc6eb
commit 1f7a3bc58d
2 changed files with 3 additions and 2 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'] ); $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 ) ) ) { if ( false !== ( $output = get_transient( $cache_key ) ) ) {
echo $output; echo $output;
return true; return true;

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.3-beta2-33182'; $wp_version = '4.3-beta2-33183';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.