Make WordPress Core

Changeset 18265


Ignore:
Timestamp:
06/11/2011 03:33:17 AM (15 years ago)
Author:
dd32
Message:

Restore the md5 in the Dash widget cache key, prevents issues with long widget ids. Props nacin. Fixes #16927

File:
1 edited

Legend:

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

    r18264 r18265  
    10431043        }
    10441044
    1045         $cache_key = 'dash_' . $widget_id;
     1045        $cache_key = 'dash_' . md5( $widget_id );
    10461046        if ( false !== ( $output = get_transient( $cache_key ) ) ) {
    10471047                echo $output;
    … …  
    11191119                }
    11201120                update_option( 'dashboard_widget_options', $widget_options );
    1121                 $cache_key = 'dash_' . $widget_id;
     1121                $cache_key = 'dash_' . md5( $widget_id );
    11221122                delete_transient( $cache_key );
    11231123        }
Note: See TracChangeset for help on using the changeset viewer.