Hi Cristián,
Within the last couple of weeks, I’ve noticed an issue where an extra blank line is now added after an s2Member shortcode in the following type of situation …
Suppose that a page contains the following text and shortcodes:
Text for everyone.
[s2If !current_user_can(access_s2member_level1)]
* Bullet for non-members.
[/s2If][s2If current_user_can(access_s2member_level1)]
* Bullet for members.
[/s2If]Text for everyone.
Until recently, the above page would display to a member as follows:
Text for everyone.
* Bullet for members.
Text for everyone.
However, now the above page displays to a member as follows:
Text for everyone.
* Bullet for members.
Text for everyone.
I’m not sure exactly when this issue started - I noticed it about a week ago, so it might have been after the recent s2Member update or after the recent Wordpress update. I’ve tried disabling all plugins except s2Member (i.e. so that the only active plugin is either 1) “s2Member Framework”, or 2) “s2Member Framework” and “s2Member Pro”), and this issue is still present.
It might not sound like a big issue, but in practice it’s a pain because there are now hundreds of pages on my website that include extra blank lines (which looks very messy). It would obviously be interesting to hear if any other s2Member users have experienced this same issue (just in case there’s some reason why this issue is unique to my website).
If this issue is caused by something that has recently changed in s2Member (or something that has recently changed in Wordpress), then it would be really good if there’s a fix that would revert back to the previous treatment of paragraph spacing.
Please note that I realise that when using s2Member shortcodes, the author should not normally leave a space (or a paragraph mark) between the shortcode and the subsequent text. For example, within the above example page, I’ve written “[/s2If]Text for everyone.” with no space (or paragraph mark) between “[s2If]” and “Text”. However, this issue occurs when a shortcode is followed by a bullet, where’s it’s not possible to leave no space.
Thanks,
Steve