advanced-post-list icon indicating copy to clipboard operation
advanced-post-list copied to clipboard

Mangled dollar amounts in shortcodes

Open ntieman opened this issue 5 years ago • 0 comments
trafficstars

When content parsed by internal shortcodes contains a dollar sign followed by a number, preg_replace interprets this as a backreference and mangles the text. For example, "Win $100 Dollars" becomes "Win 0 Dollars".

https://github.com/Advanced-Post-List/advanced-post-list/blob/fb907d8ed23dfde9bacae85938c8d85bf7567f01/includes/class/class-apl-shortcodes.php#L220

ntieman avatar Nov 03 '20 04:11 ntieman