WordPress.org

Make WordPress Core

Ticket #40417: 40417.diff

File 40417.diff, 558 bytes (added by iandunn, 3 years ago)
  • src/wp-admin/includes/dashboard.php

    diff --git src/wp-admin/includes/dashboard.php src/wp-admin/includes/dashboard.php
    index b763d43263..36dc927622 100644
    function wp_dashboard_cached_rss_widget( $widget_id, $callback, $check_urls = ar 
    980980                $check_urls = array( $widgets[$widget_id]['url'] );
    981981        }
    982982
    983         $locale = get_locale();
     983        $locale = get_user_locale();
    984984        $cache_key = 'dash_' . md5( $widget_id . '_' . $locale );
    985985        if ( false !== ( $output = get_transient( $cache_key ) ) ) {
    986986                echo $output;