From d936afccf913026120fe1e923a8546406fd30435 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Mon, 17 Nov 2008 22:02:32 +0000 Subject: [PATCH] PHPDoc for wp_clone. Props filosofo. fixes #8263 git-svn-id: https://develop.svn.wordpress.org/trunk@9744 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/functions.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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); }