Make WordPress Core


Ignore:
Timestamp:
07/13/2015 03:31:54 PM (9 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.