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

git-svn-id: http://svn.automattic.com/wordpress/trunk@17681 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2011-04-22 17:46:02 +00:00
parent c07e04ec65
commit f9b418a2f9
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
*