Switch to _doing_it_wrong(). See #15824
git-svn-id: https://develop.svn.wordpress.org/trunk@16940 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
052f67d71f
commit
26f81c3629
|
@ -660,7 +660,7 @@ function register_deactivation_hook($file, $function) {
|
|||
*/
|
||||
function register_uninstall_hook( $file, $callback ) {
|
||||
if ( is_array( $callback ) && is_object( $callback[0] ) ) {
|
||||
_deprecated_argument( __FUNCTION__, '3.1', __( '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.' ) );
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue