-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
s2If php condition with "higher than" not working #349
Comments
Could s2Drip also be affected by what's causing this problem in s2If's PHP condition? |
Thanks for the report! Taking a look now. |
Hmm. WordPress is parsing the shortcode attributes into the following, for some reason.
|
That is possible. I'm taking a closer look at what's changed in WP v4. It seems there is a problem with the |
That's so weird...
Great, thank you! :) |
Internally the shortcode is becoming the following (for some reason), which explains why we see the attributes being passed incorrectly. This seems like a WP bug to me, but I'm taking a look at the reasons why this is happening.
|
Okay. |
The
|
Referencing: https://core.trac.wordpress.org/ticket/29608 |
Maybe related: #343 |
This is a WordPress bug that has been fixed (https://core.trac.wordpress.org/ticket/29608). Hopefully we'll see this fix in a new release shortly. It it scheduled for release in WP v4.0.1. For now, using a <?php
remove_filter('the_content', 'wptexturize'); BTW, turning this filter off speeds up your WP installation and will result in fewer headaches, even after the bug has been resolved. I turn this off on every WP install that I have anyway. |
Cool. Maybe we can add a setting in s2Member -> General to disable it, making it easier for site owners to have control over it. It'd also affect how the rest of their content will look, though, right? |
Yes, but only in very subtle ways that are mostly related to fancy quotes. No biggy. Installing this plugin will fix the issue in WP v4.0: |
Great! Thanks for the workaround! :) |
It'd be good to write a blog post about it with your finding and the workaround, so it goes out to those in the email list to be aware of. And we could also add a note about it in the next release, even if nothing changed in s2Member, so that others that aren't in the list can find out too. |
Referencing: http://codex.wordpress.org/Shortcode_API#HTML |
This bug did not get fixed in WP v4.1 either. To prevent further reports of this problem and broken shortcodes that use |
Next Release Changelog:
|
Work from this issue went out with the release of s2Member v150102. |
@jaswsinc I tried this in my clean installation:
And it outputs this:
I also tried something obviously very wrong like:
And that also outputs "bigger than 10000".
Here's the related ticket: https://websharks.zendesk.com/agent/#/tickets/3815
The text was updated successfully, but these errors were encountered: