Closed dparker1005 closed 1 year ago
This line probably just needs to be updated to check that $enabled
is true:
https://github.com/strangerstudios/pmpro-gift-levels/blob/d7ed00842e81c455781a2f6b8d7168f09b1bd167/includes/admin.php#L41
Reported in ticket 411462 (moderators only).
I have a warning on the “normal” product settings page. The warning is: Gift Membership Warning: The settings of this level are not recommended. Remove the recurring subscription and membership expiration from this level. When it says “gift membership”, I suppose it’s related to the option to make it as a gift, isn’t it ? Because the option is not ticked on those “normal” products, I don’t understand why I have the warning. Can you explain what’s wrong ? I attach a screenshot of the settings of the “normal” product. On gift product settings, I have no warning.
Describe the bug The Gift Membership Warning should only show if the level being edited was set as a Gift Level, but it is currently showing for all levels with a recurring payment or expiration date.
To Reproduce Steps to reproduce the behavior:
Expected behavior The warning should not be shown in the above case.
Isolating the problem (mark completed items with an [x]):
WordPress Environment