WordPress.org

Make WordPress Core

Changeset 16955


Ignore:
Timestamp:
12/15/2010 05:14:25 PM (9 years ago)
Author:
nacin
Message:

_doing_it_wrong takes three arguments. fixes #15824.

File:
1 edited

Legend:

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

    r16940 r16955  
    661661function register_uninstall_hook( $file, $callback ) {
    662662    if ( is_array( $callback ) && is_object( $callback[0] ) ) {
    663         _doing_it_wrong( __FUNCTION__, __( '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.' ), '3.1' );
    664664        return;
    665665    }
Note: See TracChangeset for help on using the changeset viewer.