mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-30 23:30:05 +00:00
Docs: Use 3-digit, x.x.x-style semantic versioning for _doing_it_wrong(), _deprecated_function(), _deprecated_argument(), and _deprecated_file() throughout core.
Props metodiew. Fixes #36495. git-svn-id: https://develop.svn.wordpress.org/trunk@37985 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -264,7 +264,7 @@ function wp_cache_add_non_persistent_groups( $groups ) {
|
||||
* @global WP_Object_Cache $wp_object_cache Object cache global instance.
|
||||
*/
|
||||
function wp_cache_reset() {
|
||||
_deprecated_function( __FUNCTION__, '3.5' );
|
||||
_deprecated_function( __FUNCTION__, '3.5.0' );
|
||||
|
||||
global $wp_object_cache;
|
||||
|
||||
@@ -631,7 +631,7 @@ class WP_Object_Cache {
|
||||
* @see switch_to_blog()
|
||||
*/
|
||||
public function reset() {
|
||||
_deprecated_function( __FUNCTION__, '3.5', 'switch_to_blog()' );
|
||||
_deprecated_function( __FUNCTION__, '3.5.0', 'switch_to_blog()' );
|
||||
|
||||
// Clear out non-global caches since the blog ID has changed.
|
||||
foreach ( array_keys( $this->cache ) as $group ) {
|
||||
|
||||
Reference in New Issue
Block a user