Define wp_clone() before loading the cache.

git-svn-id: http://svn.automattic.com/wordpress/trunk@10937 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan
2009-04-15 19:14:43 +00:00
parent ba31bedcae
commit d2110af1b9
2 changed files with 18 additions and 18 deletions

View File

@@ -3030,24 +3030,6 @@ function wp_suspend_cache_invalidation($suspend = true) {
return $current_suspend;
}
/**
* Copy an object.
*
* Returns a cloned copy of an object.
*
* @since 2.7.0
*
* @param object $object The object to clone
* @return object The cloned object
*/
function wp_clone( $object ) {
static $can_clone;
if ( !isset( $can_clone ) ) {
$can_clone = version_compare( phpversion(), '5.0', '>=' );
}
return $can_clone ? clone( $object ) : $object;
}
function get_site_option( $key, $default = false, $use_cache = true ) {
return get_option($key, $default);
}