@@ -4,12 +4,12 @@ |
||
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'; |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | $post_types = get_post_types( array( 'public' => true ), 'objects' ); |
26 | 26 | foreach ( $post_types as $post_type ) : |
27 | 27 | |
28 | - $this->delete_posts( $post_type->name ); |
|
28 | + $this->delete_posts( $post_type->name ); |
|
29 | 29 | |
30 | 30 | endforeach; |
31 | 31 | |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | $taxonomies = get_taxonomies(); |
34 | 34 | foreach ( $taxonomies as $tax ) : |
35 | 35 | |
36 | - $this->delete_terms( $tax ); |
|
36 | + $this->delete_terms( $tax ); |
|
37 | 37 | |
38 | 38 | endforeach; |
39 | 39 | |
@@ -182,14 +182,14 @@ discard block |
||
182 | 182 | |
183 | 183 | // Query for our terms |
184 | 184 | $args = array( |
185 | - 'hide_empty' => false, |
|
186 | - 'meta_query' => array( |
|
187 | - array( |
|
188 | - 'key' => 'evans_test_content', |
|
189 | - 'value' => '__test__', |
|
190 | - 'compare' => '=' |
|
191 | - ) |
|
192 | - ) |
|
185 | + 'hide_empty' => false, |
|
186 | + 'meta_query' => array( |
|
187 | + array( |
|
188 | + 'key' => 'evans_test_content', |
|
189 | + 'value' => '__test__', |
|
190 | + 'compare' => '=' |
|
191 | + ) |
|
192 | + ) |
|
193 | 193 | ); |
194 | 194 | |
195 | 195 | $terms = get_terms( $slug, $args ); |