diff --git a/plugins/woocommerce-admin/src/ReportCSVExporter.php b/plugins/woocommerce-admin/src/ReportCSVExporter.php index e12cf5bc98f..efc75314636 100644 --- a/plugins/woocommerce-admin/src/ReportCSVExporter.php +++ b/plugins/woocommerce-admin/src/ReportCSVExporter.php @@ -121,10 +121,6 @@ class ReportCSVExporter extends \WC_CSV_Batch_Exporter { if ( isset( $controller_map[ $this->report_type ] ) ) { // Load the controllers if accessing outside the REST API. - if ( ! did_action( 'rest_api_init' ) ) { - do_action( 'rest_api_init' ); - } - return new $controller_map[ $this->report_type ](); }