Deprecate wp_clone(). Call clone directly. Props hakre. fixes #16813

git-svn-id: https://develop.svn.wordpress.org/trunk@17613 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2011-04-06 17:44:29 +00:00
parent 71eeebc9bc
commit 259c415b7b
5 changed files with 26 additions and 23 deletions

View File

@@ -350,7 +350,7 @@ class WP_Object_Cache {
if ( isset ($this->cache[$group][$id]) ) {
$this->cache_hits += 1;
if ( is_object($this->cache[$group][$id]) )
return wp_clone($this->cache[$group][$id]);
return clone $this->cache[$group][$id];
else
return $this->cache[$group][$id];
}
@@ -426,7 +426,7 @@ class WP_Object_Cache {
$data = '';
if ( is_object($data) )
$data = wp_clone($data);
$data = clone $data;
$this->cache[$group][$id] = $data;