Commit aa1b4e89 authored by ryan's avatar ryan

Set instead of add since the cache value has multiple keys that can change. ...

Set instead of add since the cache value has multiple keys that can change.  Props josephscott. fixes #4743

git-svn-id: http://svn.automattic.com/wordpress/trunk@5879 1a063a9b-81f0-0310-95a4-ce76da25c4cd
parent 5e34cab7
......@@ -137,7 +137,7 @@ function get_bookmarks($args = '') {
$results = $wpdb->get_results($query);
$cache[ $key ] = $results;
wp_cache_add( 'get_bookmarks', $cache, 'bookmark' );
wp_cache_set( 'get_bookmarks', $cache, 'bookmark' );
return apply_filters('get_bookmarks', $results, $r);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment