Skip to content

Commit 07bf0f9

Browse files
committed
Docs: Fix types for wp_cache_set_last_changed filter.
Corrects the type for the `$time` and `$previous_time` parameters in the filter to indicate the times are expressed as strings. The values are generated from a call to `microtime()` which returns the time as a string in the form `msec sec`. Props tillkruess, westonruter. Fixes #63194. git-svn-id: https://develop.svn.wordpress.org/trunk@60128 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 2e63863 commit 07bf0f9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/wp-includes/functions.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8069,9 +8069,9 @@ function wp_cache_set_last_changed( $group ) {
80698069
*
80708070
* @since 6.3.0
80718071
*
8072-
* @param string $group The cache group name.
8073-
* @param int $time The new last changed time.
8074-
* @param int|false $previous_time The previous last changed time. False if not previously set.
8072+
* @param string $group The cache group name.
8073+
* @param string $time The new last changed time (msec sec).
8074+
* @param string|false $previous_time The previous last changed time. False if not previously set.
80758075
*/
80768076
do_action( 'wp_cache_set_last_changed', $group, $time, $previous_time );
80778077

0 commit comments

Comments
 (0)