Changeset 10350
- Timestamp:
- 01/13/2009 06:31:58 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r10322 r10350 2927 2927 * @return object The cloned object 2928 2928 */ 2929 function wp_clone($object) { 2930 return version_compare(phpversion(), '5.0') < 0 ? $object : clone($object); 2929 function wp_clone( $object ) { 2930 static $can_clone; 2931 if ( !isset( $can_clone ) ) { 2932 $can_clone = version_compare( phpversion(), '5.0', '>=' ); 2933 } 2934 return $can_clone ? clone $object : $object; 2931 2935 } 2932 2936
Note: See TracChangeset
for help on using the changeset viewer.