We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e954e54 commit b4f5e38Copy full SHA for b4f5e38
uninstall.php
@@ -11,8 +11,23 @@
11
die;
12
}
13
14
-require_once dirname( __FILE__ ) . '/load-files.php';
+delete_option( 'wpephpcompat.lock' );
15
+delete_option( 'wpephpcompat.status' );
16
+delete_option( 'wpephpcompat.numdirs' );
17
+
18
+// Clear scheduled cron.
19
+wp_clear_scheduled_hook( 'wpephpcompat_start_test_cron' );
20
21
+// Make sure all directories are removed from the queue.
22
+$args = array(
23
+ 'posts_per_page' => -1,
24
+ 'post_type' => 'wpephpcompat_jobs',
25
+);
26
27
+$directories = get_posts( $args );
28
29
+foreach ( $directories as $directory ) {
30
+ wp_delete_post( $directory->ID );
31
+}
32
-$wpephpc = new WPEPHPCompat( dirname( __FILE__ ) );
-$wpephpc->clean_after_scan();
33
delete_option( 'wpephpcompat.scan_results' );
0 commit comments