Skip to:
Content

BuddyPress.org

Changeset 13992


Ignore:
Timestamp:
07/27/2024 08:35:12 PM (4 months ago)
Author:
espellcaste
Message:

PHPDoc: Update bp_core_set_incremented_cache to better reflect the accepted value to store in the cache.

See #9174

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-cache.php

    r13981 r13992  
    308308 * @param string $key   Unique key for the query. Usually a SQL string.
    309309 * @param string $group Cache group. Eg 'bp_activity'.
    310  * @param array  $ids   Array of IDs.
     310 * @param mixed  $value The value to store.
    311311 * @return bool
    312312 */
    313 function bp_core_set_incremented_cache( $key, $group, $ids ) {
     313function bp_core_set_incremented_cache( $key, $group, $value ) {
    314314    $cache_key = bp_core_get_incremented_cache_key( $key, $group );
    315     return wp_cache_set( $cache_key, $ids, $group );
     315    return wp_cache_set( $cache_key, $value, $group );
    316316}
    317317
     
    322322 *
    323323 * @since 3.0.0
     324 *
    324325 * @see bp_core_set_incremented_cache()
    325326 *
Note: See TracChangeset for help on using the changeset viewer.