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:
parent
2237a6e4b8
commit
6912126d8f
@ -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
Block a user