Having an apostrophe in Product short description breaks site
-
Not sure if this is theme specific (I’m using X theme) but when Woocommerce is enabled and I have an apostrophe in my product short description, the page breaks.
Edit: I’ve temporarily fixed the issue by wrapping get_the_excerpt() in both esc_html and addslashes. Using just one didn’t work. Modified line 193 of functional.php:
$description = addslashes(esc_html(get_the_excerpt()));
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Having an apostrophe in Product short description breaks site’ is closed to new replies.