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:
parent
c07e04ec65
commit
f9b418a2f9
|
@ -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
|
||||
*
|
||||
|
|
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue