Skip to content

Commit

Permalink
Fix: path to generic document icon (#869)
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamadNateqi authored Oct 4, 2024
1 parent d2cc365 commit fff1eca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions assets/images/generic_document.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion includes/class-wcpdf-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ public function add_listing_actions( $order ) {
foreach ( $documents as $document ) {
$document_title = $document->get_title();
$document_type = $document->get_type();
$icon = ! empty( $document->icon ) ? $document->icon : WPO_WCPDF()->plugin_url() . "/assets/images/generic_document.png";
$icon = ! empty( $document->icon ) ? $document->icon : WPO_WCPDF()->plugin_url() . '/assets/images/generic_document.svg';

if ( $document = wcpdf_get_document( $document_type, $order ) ) {
foreach ( $document->output_formats as $output_format ) {
Expand Down

0 comments on commit fff1eca

Please sign in to comment.