Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dollar signs are deleted in article shortcode #33

Open
jimwebb opened this issue Apr 20, 2016 · 1 comment
Open

Dollar signs are deleted in article shortcode #33

jimwebb opened this issue Apr 20, 2016 · 1 comment

Comments

@jimwebb
Copy link

jimwebb commented Apr 20, 2016

The templating system that generates issuem articles via the [issuem_articles] shortcode uses preg_replace to substitute content for the variables entered in the admin screens (e.g., %EXCERPT%) but it doesn't quote the content first.

So, if an article has a dollar figure, like $5.00, or $1.2 trillion, the dollar signs are treated like regex substitutions and the shortcode output ends up being ".00" and ".2 trillion".

Pull request to come. Thanks!

@jimwebb
Copy link
Author

jimwebb commented Apr 20, 2016

Try this pull request instead :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant