This commit is contained in:
Jeff Stieler 2020-06-24 17:10:54 -04:00 committed by GitHub
parent 0734fce78e
commit b4d71224e6
1 changed files with 0 additions and 4 deletions

View File

@ -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 ]();
}