Opened 7 years ago
#43155 new defect (bug)
Formatting bug with ampasands - WooCommerce Layered Nav
Reported by: | jimleeder | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | 4.7.5 |
Component: | Formatting | Keywords: | |
Focuses: | Cc: |
Description
I found a problem with the WooCommerce layered nav plugin caused by WordPress itself. When you have products shown filtered by an attribute (for example - red) and then click the number of products to show (such as 45) upon page load the ampasand (&) changes to the HTML entity instead.
I commented out a few lines on wp-includes/formatting (example - line 238 - $curl = preg_replace( '/&(?!#(?:\d+|x[a-f0-9]+);|[a-z1-4]{1,8};)/i', '&', $curl );) which now stops this happening.
Please have a look as I know this will be overwritten when WordPress is next updated.
Best Regards,
Jim.
Note: See
TracTickets for help on using
tickets.