WordPress.org

Make WordPress Core

Changeset 27162


Ignore:
Timestamp:
02/11/2014 04:40:30 PM (6 years ago)
Author:
wonderboymusic
Message:

Rather than removing the 3rd argument in WP_Object_Cache::delete(), mark it as $deprecated.

See [27064].
Props SergeyBiryukov.
Fixes #22478.

File:
1 edited

Legend:

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

    r27064 r27162  
    390390     *
    391391     * If the cache key does not exist in the group, then nothing will happen.
    392      * There used to be a 3rd param (bool $force Optional. Whether to
    393      * force the unsetting of the cache key in the group).
    394392     *
    395393     * @since 2.0.0
     
    397395     * @param int|string $key What the contents in the cache are called
    398396     * @param string $group Where the cache contents are grouped
     397     * @param bool $deprecated Deprecated.
    399398     *
    400399     * @return bool False if the contents weren't deleted and true on success
    401400     */
    402     function delete( $key, $group = 'default' ) {
     401    function delete( $key, $group = 'default', $deprecated = false ) {
    403402        if ( empty( $group ) )
    404403            $group = 'default';
Note: See TracChangeset for help on using the changeset viewer.