Use a float for last_changed microtime cache values.

microtime() by default returns a string with a space, which isn't allowed for keys in some cache backends.

props _jameslee, drozdz.
fixes #27000. see #23448.


git-svn-id: https://develop.svn.wordpress.org/trunk@27115 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin
2014-02-07 08:13:37 +00:00
parent 3dbd4f8dcb
commit 4f5608f653
4 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -985,7 +985,7 @@ function wp_get_archives($args = '') {
$last_changed = wp_cache_get( 'last_changed', 'posts' );
if ( ! $last_changed ) {
$last_changed = microtime();
$last_changed = microtime( true );
wp_cache_set( 'last_changed', $last_changed, 'posts' );
}