Make WordPress Core

Changeset 33183


Ignore:
Timestamp:
07/12/2015 10:06:56 PM (9 years ago)
Author:
johnbillion
Message:

Append the current locale to dashboard RSS widget cache keys so they refresh accordingly when the locale is changed.

Fixes #32804
Props andg

File:
1 edited

Legend:

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

    r33106 r33183  
    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;
Note: See TracChangeset for help on using the changeset viewer.