Make WordPress Core

Changeset 60128


Ignore:
Timestamp:
04/03/2025 08:47:40 PM (5 weeks ago)
Author:
peterwilsoncc
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/functions.php

    r60123 r60128  
    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 );
Note: See TracChangeset for help on using the changeset viewer.