WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/19/2017 07:13:59 PM (2 years ago)
Author:
SergeyBiryukov
Message:

Dashboard: Change the cache key for dashboard RSS widget; remove the unnecessary database upgrade routine.

Props iandunn, ocean90.
See #40702.

File:
1 edited

Legend:

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

    r40802 r40803  
    982982
    983983    $locale = get_user_locale();
    984     $cache_key = 'dash_' . md5( $widget_id . '_' . $locale );
     984    $cache_key = 'dash_v2_' . md5( $widget_id . '_' . $locale );
    985985    if ( false !== ( $output = get_transient( $cache_key ) ) ) {
    986986        echo $output;
     
    10641064        update_option( 'dashboard_widget_options', $widget_options );
    10651065        $locale = get_user_locale();
    1066         $cache_key = 'dash_' . md5( $widget_id . '_' . $locale );
     1066        $cache_key = 'dash_v2_' . md5( $widget_id . '_' . $locale );
    10671067        delete_transient( $cache_key );
    10681068    }
Note: See TracChangeset for help on using the changeset viewer.