Make WordPress Core

Changeset 40802


Ignore:
Timestamp:
05/19/2017 06:59:58 PM (8 years ago)
Author:
SergeyBiryukov
Message:

Dashboard: Append the current locale to dashboard RSS widget cache key in wp_dashboard_rss_control(), for consistency with the changes to wp_dashboard_cached_rss_widget() in [33183] and [33192].

See #32804, #40702.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/dashboard.php

    r40793 r40802  
    10631063        }
    10641064        update_option( 'dashboard_widget_options', $widget_options );
    1065         $cache_key = 'dash_' . md5( $widget_id );
     1065        $locale = get_user_locale();
     1066        $cache_key = 'dash_' . md5( $widget_id . '_' . $locale );
    10661067        delete_transient( $cache_key );
    10671068    }
Note: See TracChangeset for help on using the changeset viewer.