Skip to content

Commit

Permalink
Better compatibility with Weglot
Browse files Browse the repository at this point in the history
  • Loading branch information
jakejackson1 committed Mar 3, 2024
1 parent 367093e commit 9428477
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ Gravity PDF can be run on most modern shared web hosting without any issues. It
* Bug: Fix Drag and Drop Column layout issue when the GF Styles Pro plugin is enabled
* Bug: Fix issue sending PDF URLs with Gravity Wiz Google Sheets
* Bug: Improve display of Rich Text Textarea fields by removing top margin on individual paragraphs
* Bug: Resolve compatibility issue that corrupted PDFs when using Weglot
* Housekeeping: Exclude popular WordPress staging environments from site count when activating Gravity PDF licenses
* Housekeeping: Improve Gravity PDF license activation success and error messages
* Security: Improve security of network requests to Gravity PDF licensing server
Expand Down
6 changes: 6 additions & 0 deletions src/Controller/Controller_PDF.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,12 @@ public function add_filters() {
/* Third Party Conflict Fixes */
add_filter( 'gfpdf_pre_view_or_download_pdf', [ $this, 'sgoptimizer_html_minification_fix' ] );
add_filter( 'gfpdf_legacy_pre_view_or_download_pdf', [ $this, 'sgoptimizer_html_minification_fix' ] );
add_filter(
'gfpdf_pre_pdf_generation_output',
function() {
add_filter( 'weglot_active_translation', '__return_false' );
}
);

/* Meta boxes */
add_filter( 'gform_entry_detail_meta_boxes', [ $this->model, 'register_pdf_meta_box' ], 10, 3 );
Expand Down

0 comments on commit 9428477

Please sign in to comment.