Make WordPress Core

Opened 5 years ago

Last modified 5 years ago

#40148 new defect (bug)

wptexturize does not handle mid-word italics properly

Reported by: chriscombsdc Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.7.3
Component: Formatting Keywords:
Focuses: Cc:


When referring to the name of a publication, it is necessary to italicize the publication but not the possessive ending.

This leads to wptexturize making the wrong assumption about whether to use a "left" or a "right" quote.

Example post content:

the <em>Daily Mail</em>'s report

Current output:

the Daily Mail‘s report

Desired output:

the Daily Mail’s report

Change History (3)

#1 @lukecavanagh
5 years ago


All <em> should do is just make the text within that italic.

<em>italic text here</em>

So on the left and right quotes do you mean for double quotes?


#2 @chriscombsdc
5 years ago

Hi @lukecavanagh, the mid-word </em> tag is causing the single quote to get the wrong direction when run through wptexturize.

#3 @gitlost
5 years ago

See #18549. As mentioned there, you could try the plugin pap-texturize-1.0.0.zip.

Note: See TracTickets for help on using tickets.