Skip to content

Commit 00a4907

Browse files
authored
Update disable-empty-trash.php
1 parent e08626a commit 00a4907

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

disable-empty-trash.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,6 @@
2929

3030
// disable automatic trash emptying
3131
function disable_empty_trash() {
32-
static $disabled = false;
33-
if ( $disabled ) {
34-
return;
35-
}
36-
$disabled = true;
37-
38-
// remove scheduled trash deletion
3932
remove_action( 'wp_scheduled_delete', 'wp_scheduled_delete' );
4033
}
4134

0 commit comments

Comments
 (0)