Skip to content

Commit

Permalink
fix: fatal error due to missing second parameter on `woocommerce_emai…
Browse files Browse the repository at this point in the history
…l_styles` filter. (Filter removed)
  • Loading branch information
dkjensen committed Aug 29, 2024
1 parent 768c2fa commit fccb22f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ Adds ability for users and guests to download their WooCommerce cart as PDF. Use

== Changelog ==

2.9.4
* Fix fatal error due to missing second parameter on `woocommerce_email_styles` filter. (Filter removed)

2.9.3
* Fix `wc_cart_pdf_filename` filter not being applied to admin copy

Expand Down
2 changes: 1 addition & 1 deletion wc-cart-pdf.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ function wc_cart_pdf_process_download() {

include $css;

$css = apply_filters( 'woocommerce_email_styles', ob_get_clean() );
$css = ob_get_clean();
}

$dest = \Mpdf\Output\Destination::DOWNLOAD;
Expand Down

0 comments on commit fccb22f

Please sign in to comment.