Ticket #2647 (closed defect (bug): fixed)
wptexturize function curlifies quotes in script blocks
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 2.1 |
| Component: | General | Version: | 2.1 |
| Severity: | normal | Keywords: | bg|has-patch bg|commit bg|tested |
| Cc: |
Description
Due to a misplaced parenthesis in the wptexturize function, quotes in a script block within a post will get texturized, breaking the script.
The following test post:
<script>document.write("test");</script>
erroneously gets sent to the web broswer as:
<script>document.write(”test”);</script>
Attachments
Change History
Justinsomnia — 6 years ago
-
attachment
functions-formatting.php.diff
added
- Keywords bg|has-patch bg|commit bg|tested added
- Milestone set to 2.1
Attached patch works well.
Good Catch!
Note: See
TracTickets for help on using
tickets.

patch fixing the parenthesis error