You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create two accounts in WordPress: john1 and john2.
Role for john1 is Subscriber (Level 0)
Role for john2 is s2Member Level 1
Use [s2Member-List levels="0" /]
Expected Behavior
Only john1 should be listed.
Observed Behavior
All users are listed.
Problem
if($attr['levels'])
Should be:
if(isset($attr['levels'][0]))
Another Problem
Role-based detection for the levels="" attribute should change s2member_levelN to subscriber whenever the levels="" attribute contains a 0. Currently, entering a 0 into the list of Levels results in Subscribers being excluded; i.e., the levels="" attribute is completely broken when it comes to Free Subscribers; e.g., levels="0,1,2,3" results in Levels 1,2,3 only. Subscribers are excluded, because the Level-to-Role conversion is looking for s2member_level0 instead of subscriber.
The text was updated successfully, but these errors were encountered:
(s2Member Pro) [s2Member-List /] Bug Fix: This release corrects a bug in the [s2Member-List /] shortcode that was causing levels="0" not to work, and in fact any use of a 0 in the levels="" attribute was broken. See this GitHub issue if you'd like additional details. Props to @patdumond for reproducing, reporting and testing this issue.
Steps to Reproduce
john1
andjohn2
.john1
is Subscriber (Level 0)john2
is s2Member Level 1[s2Member-List levels="0" /]
Expected Behavior
Only
john1
should be listed.Observed Behavior
All users are listed.
Problem
Should be:
Another Problem
Role-based detection for the
levels=""
attribute should changes2member_levelN
tosubscriber
whenever thelevels=""
attribute contains a0
. Currently, entering a0
into the list of Levels results in Subscribers being excluded; i.e., thelevels=""
attribute is completely broken when it comes to Free Subscribers; e.g.,levels="0,1,2,3"
results in Levels 1,2,3 only. Subscribers are excluded, because the Level-to-Role conversion is looking fors2member_level0
instead ofsubscriber
.The text was updated successfully, but these errors were encountered: