From 51396e1e8909b73ddf65c7a823a345fb99f82edb Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Wed, 15 Dec 2010 17:14:25 +0000 Subject: [PATCH] _doing_it_wrong takes three arguments. fixes #15824. git-svn-id: https://develop.svn.wordpress.org/trunk@16955 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/plugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/plugin.php b/wp-includes/plugin.php index 81d6254024..0c10e242f5 100644 --- a/wp-includes/plugin.php +++ b/wp-includes/plugin.php @@ -660,7 +660,7 @@ function register_deactivation_hook($file, $function) { */ function register_uninstall_hook( $file, $callback ) { if ( is_array( $callback ) && is_object( $callback[0] ) ) { - _doing_it_wrong( __FUNCTION__, __( 'Only a static class method or function can be used in an uninstall hook.' ) ); + _doing_it_wrong( __FUNCTION__, __( 'Only a static class method or function can be used in an uninstall hook.' ), '3.1' ); return; }