From 6912126d8f1e8d30ab11612270d911103b748dfc Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Tue, 13 Jan 2009 14:45:50 +0000 Subject: [PATCH] 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 --- wp-includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 1056953998..56f4c62379 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -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; }