#15241 closed defect (bug) (duplicate)
wptexturize with html between quotes
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.1 |
Component: | Formatting | Keywords: | has-patch |
Focuses: | Cc: |
Description
There appears to be a problem with quotes in a post when used in combination with bold text followed by a comma. For example, the following:
"<strong>Quoted Text</strong>",
...will create bold quoted text but the closing quote will be backwards.
Attachments (3)
Change History (26)
#7
@
15 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
This broke this string:
That means every moment you're working on something without it being in the public it's actually dying.
Before:
That means every moment you’re working on something without it being in the public it’s actually dying.
After:
That means every moment you‘re working on something without it being in the public it’s actually dying.
#8
@
15 years ago
That should not happen because first it would replace words with quotes in the middle and process any leftover quotes after all such occurrences were found. Looking into it.
#9
@
15 years ago
- Keywords has-patch added; needs-patch removed
Good catch, thanks. Fixed by changing the order of replacements. Also fixed the unit test which was missing some ampersands.
#11
@
15 years ago
Unit tests fixed in [UT320]. I should read the failing tests more carefully pre-coffee ;-)
#13
@
15 years ago
@norbertm - would you be able to spend a little bit of time fleshing out the Unit Tests with some extra tests to ensure we cover all scenarios here?
It would be good to increase the coverage on this function as it is a very fragile thing to change ;-)
#14
@
15 years ago
The problem still exists for me, even after [16378]. e.g., I see sentences like the following on my site:
This isn‘t inherently bad, but I don’t think it’s normal.
#15
@
15 years ago
@westi - definitely! I already included a bunch of tests with #4539 but there is room for more and it makes sense to clean it all up.
@wahgnube - will look into that, thanks!
#16
@
15 years ago
I think there is a related by different issue here #15444 however please close as a dup if that is addressed by this patch.
#17
@
15 years ago
- Severity changed from normal to critical
Closed #15444 as a duplicate. We should turn that into a unit test. Upping the severity based on what's in trunk.
Test cases: http://unit-tests.trac.wordpress.org/changeset/311