@@ -4,12 +4,12 @@ discard block |
||
4 | 4 | |
5 | 5 | // If uninstall is not called from WordPress, exit |
6 | 6 | if ( !defined( 'WP_UNINSTALL_PLUGIN' ) ) { |
7 | - exit(); |
|
7 | + exit(); |
|
8 | 8 | } |
9 | 9 | |
10 | 10 | // Check if the current user has priveledges to run this method |
11 | 11 | if ( ! current_user_can( 'activate_plugins' ) ){ |
12 | - return; |
|
12 | + return; |
|
13 | 13 | } |
14 | 14 | |
15 | 15 | require dirname( __FILE__ ) . '/includes/class-delete.php'; |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | $post_types = get_post_types( array( 'public' => true ), 'objects' ); |
20 | 20 | foreach ( $post_types as $post_type ) : |
21 | 21 | |
22 | - $delete->delete_posts( $post_type->name ); |
|
22 | + $delete->delete_posts( $post_type->name ); |
|
23 | 23 | |
24 | 24 | endforeach; |
25 | 25 | |
@@ -27,6 +27,6 @@ discard block |
||
27 | 27 | $taxonomies = get_taxonomies(); |
28 | 28 | foreach ( $taxonomies as $tax ) : |
29 | 29 | |
30 | - $delete->delete_terms( $tax ); |
|
30 | + $delete->delete_terms( $tax ); |
|
31 | 31 | |
32 | 32 | endforeach; |