From 28ef7b69e57b082b4e1685c334aa976b9a34754b Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Mon, 13 Jul 2015 15:31:54 +0000 Subject: [PATCH] Place the locale inside the md5 hash in the dashboard RSS feed widget transient key to prevent the transient timeout option name becoming longer than the allowed field size. Props andg Fixes #32804 git-svn-id: https://develop.svn.wordpress.org/trunk@33192 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/dashboard.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/includes/dashboard.php b/src/wp-admin/includes/dashboard.php index 6f23631795..8aae3b7a2b 100644 --- a/src/wp-admin/includes/dashboard.php +++ b/src/wp-admin/includes/dashboard.php @@ -877,7 +877,7 @@ function wp_dashboard_cached_rss_widget( $widget_id, $callback, $check_urls = ar } $locale = get_locale(); - $cache_key = 'dash_' . md5( $widget_id ) . '_' . $locale; + $cache_key = 'dash_' . md5( $widget_id . '_' . $locale ); if ( false !== ( $output = get_transient( $cache_key ) ) ) { echo $output; return true;