diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 73ffdba6fb..f9a9d4a0c9 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -2881,8 +2881,18 @@ 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) { - return version_compare(phpversion(), '5.0') < 0 ? $object : clone($object); + return version_compare(phpversion(), '5.0') < 0 ? $object : clone($object); }