Make WordPress Core

Changeset 60206


Ignore:
Timestamp:
04/29/2025 10:42:19 PM (3 months ago)
Author:
SergeyBiryukov
Message:

Cache API: Consistently pass the $expire value as an integer in cache functions.

Follow-up to [52700].

Props dilipbheda.
Fixes #63364.

File:
1 edited

Legend:

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

    r60130 r60206  
    6363    global $wp_object_cache;
    6464
    65     return $wp_object_cache->add_multiple( $data, $group, $expire );
     65    return $wp_object_cache->add_multiple( $data, $group, (int) $expire );
    6666}
    6767
     
    130130    global $wp_object_cache;
    131131
    132     return $wp_object_cache->set_multiple( $data, $group, $expire );
     132    return $wp_object_cache->set_multiple( $data, $group, (int) $expire );
    133133}
    134134
Note: See TracChangeset for help on using the changeset viewer.