[wp-trac] [WordPress Trac] #63194: Fix type of last_changed cache time

WordPress Trac noreply at wordpress.org
Fri Mar 28 20:50:27 UTC 2025


#63194: Fix type of last_changed cache time
--------------------------+-----------------------------
 Reporter:  tillkruess    |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Cache API     |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 The `wp_cache_set_last_changed` action currently says that `$time` is and
 `int`, however it's a string.

 I propose changing the microtime() call to return a `float` instead of
 `string` which is quite annoying to compare against.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63194>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list