Faster wp_clone function fix, props sambauers, fixes #8844 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@10353 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9166c049ad
commit
b619cefe1d
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue