src/class-upgrader.php
protected function delete_vulnerabilities() {
		$query = new WP_Query( [
			'fields' => 'ids',
			'no_found_rows' => true,
			'post_type' => 'soter_vulnerability',
			'post_status' => 'private',
			// @todo Vulnerabilities were previously garbage collected on a daily
			// basis so it shouldn't be a problem to get all of them - worth testing.
			'posts_per_page' => -1,
			'update_post_meta_cache' => false,
			'update_post_term_cache' => false,
		] );

		// Can be empty.
		foreach ( $query->posts as $id ) {
			wp_delete_post( $id );
		}
	}
protected function delete_vulnerabilities() {
		$query = new WP_Query( [
			'fields' => 'ids',
			'no_found_rows' => true,
			'post_type' => 'soter_vulnerability',
			'post_status' => 'private',
			// @todo Vulnerabilities were previously garbage collected on a daily
			// basis so it shouldn't be a problem to get all of them - worth testing.
			'posts_per_page' => -1,
			'update_post_meta_cache' => false,
			'update_post_term_cache' => false,
		] );

		// Can be empty.
		foreach ( $query->posts as $id ) {
			wp_delete_post( $id );
		}
	}
protected function delete_vulnerabilities ( ) { $ query = new WP_Query ( [ 'fields' => 'ids' , 'no_found_rows' => true , 'post_type' => 'soter_vulnerability' , 'post_status' => 'private' , // @todo Vulnerabilities were previously garbage collected on a daily // basis so it shouldn't be a problem to get all of them - worth testing. 'posts_per_page' => - 1 , 'update_post_meta_cache' => false , 'update_post_term_cache' => false , ] ) ; // Can be empty. foreach ( $ query -> posts as $ id ) { wp_delete_post ( $ id ) ; } }
Deletes any lingering soter_vulnerability posts.

@return void
Deletes any lingering soter_vulnerability posts .