PHPDoc for wp_clone. Props filosofo. fixes #8263

git-svn-id: http://svn.automattic.com/wordpress/trunk@9744 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-11-17 22:02:32 +00:00
parent 222159d16c
commit e1fea167e6
1 changed files with 11 additions and 1 deletions

View File

@ -2881,8 +2881,18 @@ function wp_suspend_cache_invalidation($suspend = true) {
return $current_suspend; 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) { function wp_clone($object) {
return version_compare(phpversion(), '5.0') < 0 ? $object : clone($object); return version_compare(phpversion(), '5.0') < 0 ? $object : clone($object);
} }