Make WordPress Core

Ticket #40702: 40702-transient-rename.diff

File 40702-transient-rename.diff, 556 bytes (added by iandunn, 7 years ago)

Rename the transient instead of adding the hack, props ocean90

  • src/wp-admin/includes/dashboard.php

    diff --git src/wp-admin/includes/dashboard.php src/wp-admin/includes/dashboard.php
    index af61be3fc1..c823bc2de8 100644
    function wp_dashboard_cached_rss_widget( $widget_id, $callback, $check_urls = ar 
    981981        }
    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;
    987987                return true;