Ticket #16927: 16927.delete_transient.patch
| File 16927.delete_transient.patch, 762 bytes (added by , 15 years ago) |
|---|
-
wp-admin/includes/dashboard.php
1042 1042 $check_urls = array( $widgets[$widget_id]['url'] ); 1043 1043 } 1044 1044 1045 $cache_key = 'dash_' . md5( $ callback . implode(',', $check_urls));1045 $cache_key = 'dash_' . md5( $widget_id ); 1046 1046 if ( false !== ( $output = get_transient( $cache_key ) ) ) { 1047 1047 echo $output; 1048 1048 return true; … … 1118 1118 } 1119 1119 } 1120 1120 update_option( 'dashboard_widget_options', $widget_options ); 1121 $cache_key = 'dash_' . md5( $widget_id ); 1122 delete_transient( $cache_key ); 1121 1123 } 1122 1124 1123 1125 wp_widget_rss_form( $widget_options[$widget_id], $form_inputs );