Skip to content

Commit

Permalink
Fix SQL DELETE query. #3841
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnyratilal committed Mar 31, 2018
1 parent dbfe877 commit 1240321
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-edd-cli.php
Expand Up @@ -1070,7 +1070,7 @@ public function migrate_logs( $args, $assoc_args ) {
$log_ids = wp_list_pluck( $log_ids, 'ID' );
$log_ids = implode( ', ', $log_ids );

$delete_query = "DELETE FROM {$wpdb->posts} WHERE post_type = 'edd_log')";
$delete_query = "DELETE FROM {$wpdb->posts} WHERE post_type = 'edd_log'";
$wpdb->query( $delete_query );

$delete_postmeta_query = "DELETE FROM {$wpdb->posts} WHERE ID IN ({$log_ids})";
Expand Down

0 comments on commit 1240321

Please sign in to comment.