WordPress.org

Make WordPress Core

Changeset 33183


Ignore:
Timestamp:
07/12/15 22:06:56 (2 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.