WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/06/2011 05:44:29 PM (11 years ago)
Author:
ryan
Message:

Deprecate wp_clone(). Call clone directly. Props hakre. fixes #16813

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/deprecated.php

    r17541 r17613  
    26032603}
    26042604
     2605
     2606/**
     2607 * Copy an object.
     2608 *
     2609 * Returns a cloned copy of an object.
     2610 *
     2611 * @since 2.7.0
     2612 * @deprecated 3.2
     2613 *
     2614 * @param object $object The object to clone
     2615 * @return object The cloned object
     2616 */
     2617function wp_clone( $object ) {
     2618    _deprecated_function( __FUNCTION__, '3.2' );
     2619
     2620    return clone $object;
     2621}
Note: See TracChangeset for help on using the changeset viewer.