Make WordPress Core

Opened 7 years ago

Closed 7 years ago

#47724 closed defect (bug) (duplicate)

International closing quotation marks are broken if surrounded by HTML Tags and punctuation marks

Reported by: apermo Owned by:
Priority: normal Milestone:
Component: Formatting Version:
Severity: normal Keywords:
Cc: Focuses:

Description

<!-- wp:paragraph -->
<p>lorem ipsum "<strong>text in correct quotation marks</strong>" dolor.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>lorem ipsum "<strong>text in broken quotation marks</strong>".</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>lorem ipsum "text in correct quotation marks".</p>
<!-- /wp:paragraph -->

Screenshot made using the snippet in WP 5.2.2 with latest twentynineteen, locale set to de_de.

I already discussed with @swisspidy and @tobifjellner on slack about it, and most likely it's a bug, the function replacing the normal " with the local opening or closing quotation marks has an issue as soon as html tags are next to them.

Attachments (1)

image (1).png (23.9 KB ) - added by apermo 7 years ago.
Screenshot made using the attached Demo content in WP 5.2.2 with latest twentynineteen, locale set to de_de.

Download all attachments as: .zip

Change History (6)

@apermo
7 years ago

Screenshot made using the attached Demo content in WP 5.2.2 with latest twentynineteen, locale set to de_de.

This ticket was mentioned in Slack in #core-i18n by apermo. View the logs.


7 years ago

#2 @tobifjellner
7 years ago

  • Component GeneralFormatting

It's about wptexturize()

#4 @audrasjb
7 years ago

  • Version 5.2.2

#5 @pento
7 years ago

  • Milestone Awaiting Review
  • Resolutionduplicate
  • Status newclosed

Aye, this is a duplicate of #18549. Thank you for the report, @apermo!

Note: See TracTickets for help on using tickets.