diff --git a/src/wp-includes/cache.php b/src/wp-includes/cache.php index 30257e02af..06c8647ef9 100644 --- a/src/wp-includes/cache.php +++ b/src/wp-includes/cache.php @@ -339,13 +339,13 @@ function wp_cache_add_non_persistent_groups( $groups ) { * recommended outside of unit tests as the performance penalty for using it is high. * * @since 3.0.0 - * @deprecated 3.5.0 WP_Object_Cache::reset() + * @deprecated 3.5.0 Use wp_cache_switch_to_blog() * @see WP_Object_Cache::reset() * * @global WP_Object_Cache $wp_object_cache Object cache global instance. */ function wp_cache_reset() { - _deprecated_function( __FUNCTION__, '3.5.0', 'WP_Object_Cache::reset()' ); + _deprecated_function( __FUNCTION__, '3.5.0', 'wp_cache_switch_to_blog()' ); global $wp_object_cache; diff --git a/src/wp-includes/class-wp-object-cache.php b/src/wp-includes/class-wp-object-cache.php index 2a93c53746..da32611974 100644 --- a/src/wp-includes/class-wp-object-cache.php +++ b/src/wp-includes/class-wp-object-cache.php @@ -461,11 +461,11 @@ class WP_Object_Cache { * * @since 3.0.0 * - * @deprecated 3.5.0 Use switch_to_blog() + * @deprecated 3.5.0 Use WP_Object_Cache::switch_to_blog() * @see switch_to_blog() */ public function reset() { - _deprecated_function( __FUNCTION__, '3.5.0', 'switch_to_blog()' ); + _deprecated_function( __FUNCTION__, '3.5.0', 'WP_Object_Cache::switch_to_blog()' ); // Clear out non-global caches since the blog ID has changed. foreach ( array_keys( $this->cache ) as $group ) {