-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
Describe the bug
PHP warnings (Undefined array key) are triggered when using the Advanced Levels Page compare_table layout if improperly formatted content is provided in the compare attribute.
https://github.com/strangerstudios/pmpro-advanced-levels-shortcode/blob/1.2/templates/levels-compare_table.php#L231-L236
To Reproduce
Steps to reproduce the behavior:
- Add the advanced levels shortcode to a page with invalid
compareattribute content for thecompare_tablelayout, e.g.[pmpro_advanced_levels levels="1,2" layout="compare_table" compare="hello"] - Visit the advanced levels page
- See warnings/Check debug logs
Expected behavior
No PHP warnings.
Isolating the problem (mark completed items with an [x]):
- I have deactivated other plugins and confirmed this bug occurs when only Paid Memberships Pro plugin is active.
- This bug happens with a default WordPress theme active, or Memberlite.
- I can reproduce this bug consistently using the steps above.
WordPress Environment
Details
Advanced Levels Shortcode 1.2Metadata
Metadata
Assignees
Labels
No labels