Make WordPress Core

Changeset 60133


Ignore:
Timestamp:
04/06/2025 10:27:30 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.

Reviewed by audrasjb.
Merges [60128] to the 6.8 branch.

Props tillkruess, westonruter.
Fixes #63194.

Location:
branches/6.8
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/6.8

  • branches/6.8/src/wp-includes/functions.php

    r60125 r60133  
    80718071     * @since 6.3.0
    80728072     *
    8073      * @param string    $group         The cache group name.
    8074      * @param int       $time          The new last changed time.
    8075      * @param int|false $previous_time The previous last changed time. False if not previously set.
     8073     * @param string       $group         The cache group name.
     8074     * @param string       $time          The new last changed time (msec sec).
     8075     * @param string|false $previous_time The previous last changed time. False if not previously set.
    80768076     */
    80778077    do_action( 'wp_cache_set_last_changed', $group, $time, $previous_time );
Note: See TracChangeset for help on using the changeset viewer.