Hi,
I recently noticed the s2Get shortcode was returning the wrong “display_name”. To verify the shortcode, I created a test page and manually tested with different “user_id” values. Regardless of the “user_id”, it was always returning the “display_name” of the logged in user.
For reference, I’m using this shortcode:
[s2Get user_field=“display_name” user_id=“123” /]
Per the messages above, I went ahead and updated to version (v260301). Unfortunately, that didn’t fix the issue. I was able to track down the shortcode here: /plugins/s2member/src/includes/classes/sc-gets-in.inc.php
On line #75? I see the “user_id” attribute was hard coded to “0” ($attr[‘user_id’] = 0). When I comment this out, the shortcode works as expected and returns the correct “display_name”.
Can one of the staff or moderators confirm this is the issue causing these problems. I’m guessing someone accidentally tested this out, but forgot to remove it, when this was pushed to production.
Thoughts?
Thanks
Mark

