From f9b418a2f958825a94060857d62d8badb3274887 Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 22 Apr 2011 17:46:02 +0000 Subject: [PATCH] Move wp_clone() back to load.php. Props technosailor. fixes #17206 git-svn-id: http://svn.automattic.com/wordpress/trunk@17681 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/deprecated.php | 18 ------------------ wp-includes/load.php | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 18 deletions(-) diff --git a/wp-includes/deprecated.php b/wp-includes/deprecated.php index e53bc5d7cf..49c2538e26 100644 --- a/wp-includes/deprecated.php +++ b/wp-includes/deprecated.php @@ -2602,24 +2602,6 @@ function update_category_cache() { return true; } - -/** - * Copy an object. - * - * Returns a cloned copy of an object. - * - * @since 2.7.0 - * @deprecated 3.2 - * - * @param object $object The object to clone - * @return object The cloned object - */ -function wp_clone( $object ) { - _deprecated_function( __FUNCTION__, '3.2' ); - - return clone $object; -} - /** * Check for PHP timezone support * diff --git a/wp-includes/load.php b/wp-includes/load.php index 47167b351f..1841f16e76 100644 --- a/wp-includes/load.php +++ b/wp-includes/load.php @@ -550,6 +550,22 @@ function shutdown_action_hook() { wp_cache_close(); } +/** + * Copy an object. + * + * @since 2.7.0 + * @deprecated 3.2 + * + * @param object $object The object to clone + * @return object The cloned object + */ + +function wp_clone( $object ) { + _deprecated_function( __FUNCTION__, '3.2' ); + + return clone $object; +} + /** * Whether the current request is for a network or blog admin page *