From 2efcdcf2971c7641659ee6bd32950203e1b03aa7 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Tue, 11 Feb 2014 16:41:12 +0000 Subject: [PATCH] Rather than removing the 3rd argument in `WP_Object_Cache::delete()`, mark it as `$deprecated`. See [27064]. Props SergeyBiryukov. Fixes #22478. Built from https://develop.svn.wordpress.org/trunk@27162 git-svn-id: http://core.svn.wordpress.org/trunk@27028 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/cache.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/wp-includes/cache.php b/wp-includes/cache.php index 67274ec358..bcc9aca0e7 100644 --- a/wp-includes/cache.php +++ b/wp-includes/cache.php @@ -389,17 +389,16 @@ class WP_Object_Cache { * Remove the contents of the cache key in the group * * If the cache key does not exist in the group, then nothing will happen. - * There used to be a 3rd param (bool $force Optional. Whether to - * force the unsetting of the cache key in the group). * * @since 2.0.0 * * @param int|string $key What the contents in the cache are called * @param string $group Where the cache contents are grouped + * @param bool $deprecated Deprecated. * * @return bool False if the contents weren't deleted and true on success */ - function delete( $key, $group = 'default' ) { + function delete( $key, $group = 'default', $deprecated = false ) { if ( empty( $group ) ) $group = 'default';