Make WordPress Core

Ticket #32804: patch.diff

File patch.diff, 573 bytes (added by andg, 10 years ago)

That makes sense, as the feeds cached with the old key would automatically be updated with the new one with the new key, without the user noticing.

  • wp-admin/includes/dashboard.php

    diff --git a/wp-admin/includes/dashboard.php b/wp-admin/includes/dashboard.php
    index 03929ad..0d118f6 100644
    a b function wp_dashboard_cached_rss_widget( $widget_id, $callback, $check_urls = ar 
    876876                $check_urls = array( $widgets[$widget_id]['url'] );
    877877        }
    878878
    879         $cache_key = 'dash_' . md5( $widget_id );
     879        $locale = get_locale();
     880        $cache_key = 'dash_' . md5( $widget_id ) . '_' . $locale;
    880881        if ( false !== ( $output = get_transient( $cache_key ) ) ) {
    881882                echo $output;
    882883                return true;