WordPress.org

Make WordPress Core

Changeset 33192


Ignore:
Timestamp:
07/13/15 15:31:54 (2 years ago)
Author:
johnbillion
Message:

Place the locale inside the md5 hash in the dashboard RSS feed widget transient key to prevent the transient timeout option name becoming longer than the allowed field size.

Props andg
Fixes #32804

File:
1 edited

Legend:

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

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