Merge pull request #32838 from woocommerce/fix/email-template--path

Update path to email template for analytics report
This commit is contained in:
Adrian Duffell 2022-05-03 12:44:10 +08:00 committed by GitHub
commit 1f9cb4e7fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -0,0 +1,4 @@
Significance: patch
Type: fix
Update path to email template for analytics report.

View File

@ -25,7 +25,7 @@ class ReportCSVEmail extends \WC_Email {
*/
public function __construct() {
$this->id = 'admin_report_export_download';
$this->template_base = dirname( __DIR__ ) . '/includes/emails/';
$this->template_base = WC()->plugin_path() . '/includes/react-admin/emails/';
$this->template_html = 'html-admin-report-export-download.php';
$this->template_plain = 'plain-admin-report-export-download.php';
$this->report_labels = array(