_doing_it_wrong takes three arguments. fixes #15824.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16955 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1b18b8e5f0
commit
c9e1ab9bd9
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue