it translates $ followed by any number to "0". This makes it really bad for advertisers
it translates $ followed by any number to "0". This makes it really bad for advertisers
Can you try putting a backslash in front of the price to see if it fixes the problem?
but then my post articles wouldnt be correct. There must be a way to fix this in the code?
I'm having a similar problem. I have a page with several dollar amounts, and it's cutting the dollar sign and first two digits off when it pulls it into the "Notify Users of a Post" screen.
For example, "$123,456" becomes "3,456".
I tried replacing the $ with the ASCII code and it worked long enough for me to save the post, go to the Notify page and send, but then TinyMCE threw the $ back in place of the ASCII codes (insert rant about TinyMCE).
Using the most recent versions of WordPress and Email Users. With this exception, your plugin has worked perfectly so far!
I'll see if I can figure out what is causing this.
Thanks, Mike! Ping me if I can provide any other feedback.
What is happening is preg_repalace() is seeing the $12.34 as part of the replacement pattern and is processing the $12 portion of it as a back reference. Now that I know what is happening, I need to fix it.
This article explains the "gotcha" as one of the case studies.
Beta version of 4.3.15 which includes a fix for this problem is now available for testing! Let me know if you run into any issues.
Email Users v4.3.15 is now available which fixes this issue.
You must log in to post.