WordPress.org

Make WordPress Core

Opened 3 years ago

Last modified 3 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:
PR Number:

Description

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
3 years ago

@chriscombsdc

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?

https://codex.wordpress.org/Fun_Character_Entities
https://codex.wordpress.org/Function_Reference/wptexturize

#2 @chriscombsdc
3 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
3 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.