diff --git a/includes/classes/Command.php b/includes/classes/Command.php index a7e3c46c..e9b51af4 100644 --- a/includes/classes/Command.php +++ b/includes/classes/Command.php @@ -220,7 +220,7 @@ function( $post_type ) use ( $post_types ) { foreach ( $posts as $post ) { if ( $count < $limit ) { if ( ! $dry_run ) { - $response = track_event( 'publish', 'publish', $post ); + $response = track_event( $post->ID, $post, true, null ); if ( is_wp_error( $response ) ) { $error_count++; } else {