Make WordPress Core

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#27602 closed defect (bug) (fixed)

wptexturize ignores text after unmatched [

Reported by: miqrogroove Owned by: wonderboymusic
Priority: normal Milestone: 4.0
Component: Formatting Version: 3.8
Severity: trivial Keywords: wptexturize
Cc: Focuses:

Description

In handling the element and shortcode delimeters to avoid changing their contents, the function rather lazily ignores everything after the first char of the post or split phrase. You can try these in the editor with the preview button.

Test case:

[Hello world, this is my post.  "As you may know, I like curly quotes."

Compare with:

H[ello world, this is my post.  "As you may know, I like curly quotes."

Change History (4)

#1 @miqrogroove
12 years ago

  • Keywords wptexturize added
  • Severity normaltrivial

#2 @miqrogroove
12 years ago

Patch added on #12690. These are two different bugs but should be fixed together.

#3 @wonderboymusic
12 years ago

  • Owner set to wonderboymusic
  • Resolutionfixed
  • Status newclosed

In 28727:

In wptexturize(), ensure that texturization does not corrupt contents of HTML elements, HTML comments, and smartcode attributes.

Adds a variety of unit tests/assertions.

Props miqrogroove.
Fixes #12690, #8912, #27602.

#4 @wonderboymusic
12 years ago

  • Milestone Awaiting Review4.0
Note: See TracTickets for help on using tickets.