Skip to content

Commit

Permalink
Revert "Update class-wcpdf-endpoint.php"
Browse files Browse the repository at this point in the history
This reverts commit 1ab124c.
  • Loading branch information
alexmigf committed Oct 17, 2023
1 parent 1ab124c commit 828c868
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions includes/class-wcpdf-endpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ public function get_document_link( $order, $document_type, $additional_vars = ar
// handle additional query vars
$additional_vars = apply_filters( 'wpo_wcpdf_document_link_additional_vars', $additional_vars, $order, $document_type );
if ( ! empty( $additional_vars ) && is_array( $additional_vars ) ) {
if ( isset( $additional_vars['output'] ) && $this->pretty_links_enabled() ) {
unset( $additional_vars['output'] );
}
$document_link = add_query_arg( $additional_vars, $document_link );
}

Expand Down

0 comments on commit 828c868

Please sign in to comment.