Move wp_clone() back to load.php. Props technosailor. fixes #17206

git-svn-id: https://develop.svn.wordpress.org/trunk@17681 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2011-04-22 17:46:02 +00:00
parent 9fbd1866bc
commit d48d7451c6
2 changed files with 16 additions and 18 deletions

View File

@ -2602,24 +2602,6 @@ 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;
}
/**
* Check for PHP timezone support
*

View File

@ -550,6 +550,22 @@ function shutdown_action_hook() {
wp_cache_close();
}
/**
* Copy 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;
}
/**
* Whether the current request is for a network or blog admin page
*