Make WordPress Core

Ticket #32804: 32804.diff

File 32804.diff, 534 bytes (added by andg, 9 years ago)

This is a new version of the patch with the solution proposed by @ocean90 to include the locale inside the md5 call.

  • wp-admin/includes/dashboard.php

    diff --git a/wp-admin/includes/dashboard.php b/wp-admin/includes/dashboard.php
    index 6f23631..8aae3b7 100644
    a b function wp_dashboard_cached_rss_widget( $widget_id, $callback, $check_urls = ar 
    877877        }
    878878
    879879        $locale = get_locale();
    880         $cache_key = 'dash_' . md5( $widget_id ) . '_' . $locale;
     880        $cache_key = 'dash_' . md5( $widget_id . '_' . $locale );
    881881        if ( false !== ( $output = get_transient( $cache_key ) ) ) {
    882882                echo $output;
    883883                return true;