strangerstudios / pmpro-pay-by-check

Add a "Pay by Check" option to PMPro levels, and keep members in "pending" status until an admin changes the order status.
https://www.paidmembershipspro.com/add-ons/pmpro-pay-by-check-add-on/
11 stars 27 forks source link

Fixes an error caused by no attr in membership shortcode #104

Closed JarrydLong closed 1 year ago

JarrydLong commented 1 year ago

All Submissions:

Changes proposed in this Pull Request:

Fixes a PHP error that is caused by the [membership] shortcode not having a levels attribute

How to test the changes in this Pull Request:

  1. Add the [membership] shortcode to a page
  2. Sign up for a level with a check payment
  3. Visit the page - No error should show. Previously: Warning: foreach() argument must be of type array|object, bool given in /Users/jarrydlong/Local Sites/paid-memberships-pro/app/public/wp-content/plugins/pmpro-pay-by-check/pmpro-pay-by-check.php on line 634

Other information: