Faster wp_clone function fix, props sambauers, fixes #8844 for trunk

git-svn-id: https://develop.svn.wordpress.org/trunk@10353 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2009-01-13 14:45:50 +00:00
parent 2237a6e4b8
commit 6912126d8f

View File

@ -2931,7 +2931,7 @@ function wp_clone( $object ) {
if ( !isset( $can_clone ) ) {
$can_clone = version_compare( phpversion(), '5.0', '>=' );
}
return $can_clone ? clone $object : $object;
return $can_clone ? clone( $object ) : $object;
}