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

@@ -2602,3 +2602,20 @@ function update_category_cache() {
return true;
}
/**
* Copy an object.
*
* Returns a cloned copy of an object.
*
* @since 2.7.0
* @deprecated 3.2
*
* @param object $object The object to clone
* @return object The cloned object
*/
function wp_clone( $object ) {
_deprecated_function( __FUNCTION__, '3.2' );
return clone $object;
}