WordPress.org

Make WordPress Core

Changeset 16940


Ignore:
Timestamp:
12/15/10 11:31:00 (3 years ago)
Author:
westi
Message:

Switch to _doing_it_wrong(). See #15824

File:
1 edited

Legend:

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

    r16575 r16940  
    661661function register_uninstall_hook( $file, $callback ) { 
    662662    if ( is_array( $callback ) && is_object( $callback[0] ) ) { 
    663         _deprecated_argument( __FUNCTION__, '3.1', __( 'Only a static class method or function can be used in an uninstall hook.' ) ); 
     663        _doing_it_wrong( __FUNCTION__, __( 'Only a static class method or function can be used in an uninstall hook.' ) ); 
    664664        return; 
    665665    } 
Note: See TracChangeset for help on using the changeset viewer.