mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-01 03:04:34 +00:00
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:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user