mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Restore the md5 in the Dash widget cache key, prevents issues with long widget ids. Props nacin. Fixes #16927
git-svn-id: https://develop.svn.wordpress.org/trunk@18265 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
4963d5f945
commit
1b36a05e18
@ -1042,7 +1042,7 @@ function wp_dashboard_cached_rss_widget( $widget_id, $callback, $check_urls = ar
|
||||
$check_urls = array( $widgets[$widget_id]['url'] );
|
||||
}
|
||||
|
||||
$cache_key = 'dash_' . $widget_id;
|
||||
$cache_key = 'dash_' . md5( $widget_id );
|
||||
if ( false !== ( $output = get_transient( $cache_key ) ) ) {
|
||||
echo $output;
|
||||
return true;
|
||||
@ -1118,7 +1118,7 @@ function wp_dashboard_rss_control( $widget_id, $form_inputs = array() ) {
|
||||
}
|
||||
}
|
||||
update_option( 'dashboard_widget_options', $widget_options );
|
||||
$cache_key = 'dash_' . $widget_id;
|
||||
$cache_key = 'dash_' . md5( $widget_id );
|
||||
delete_transient( $cache_key );
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user