_doing_it_wrong takes three arguments. fixes #15824.

git-svn-id: https://develop.svn.wordpress.org/trunk@16955 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2010-12-15 17:14:25 +00:00
parent 2a44684f3e
commit 51396e1e89
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}