mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-29 23:57:41 +02:00
Switch to _doing_it_wrong(). See #15824
git-svn-id: http://svn.automattic.com/wordpress/trunk@16940 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ed33168add
commit
167df97e81
@ -660,7 +660,7 @@ function register_deactivation_hook($file, $function) {
|
|||||||
*/
|
*/
|
||||||
function register_uninstall_hook( $file, $callback ) {
|
function register_uninstall_hook( $file, $callback ) {
|
||||||
if ( is_array( $callback ) && is_object( $callback[0] ) ) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user