GravityPDF / gravity-pdf

Gravity PDF is a GPLv2-licensed WordPress plugin that allows you to automatically generate, email and download PDF documents using Gravity Forms.
https://gravitypdf.com
89 stars 21 forks source link

Fix PHP error if WP_Error() object passed to shortcode processor #1522

Closed jakejackson1 closed 2 months ago

jakejackson1 commented 2 months ago

Description

Customer reported issue with form submission process when using legacy Gravity Forms PayPal add-on. Logs showed $entry was a WP_Error object instead of an array.

Updated code to handle this edge-case.

Testing instructions

Screenshots

Checklist:

Additional Comments

codecov[bot] commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 73.94%. Comparing base (761fb81) to head (f625a49).

:exclamation: Current head f625a49 differs from pull request most recent head deb6018. Consider uploading reports for the commit deb6018 to get more accurate results

Additional details and impacted files ```diff @@ Coverage Diff @@ ## development #1522 +/- ## ============================================ Coverage 73.94% 73.94% ============================================ Files 191 191 Lines 11453 11453 ============================================ Hits 8469 8469 Misses 2984 2984 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.