Make WordPress Core

Opened 17 years ago

Closed 15 years ago

Last modified 5 years ago

#4491 closed defect (bug) (duplicate)

Quoted text ending in number foils "smart" quotes

Reported by: cherylontheweb's profile cherylontheweb Owned by:
Milestone: Priority: lowest
Severity: minor Version: 2.2
Component: Formatting Keywords: needs-patch
Focuses: Cc:

Description

The end quote of a quoted string is different when the string ends in a number (and is also in that case inconsistent with the starting quote); I have to assume there is a bug here? (not running any plugins that could account for this)

Example: "one" is encoded as “one” but "1" is encoded as “1″

Or take this test example..
"1" "one" "11" "one1" "12"

.. which is encoded as..
“1″ “one” “11″ “one1″ “12″

Change History (12)

#1 @cherylontheweb
17 years ago

  • Cc cherylontheweb added

#2 @foolswisdom
17 years ago

  • Milestone set to 2.4 (future)

#3 @Otto42
17 years ago

After a number, it converts a quote into a "double prime" character, which is usually used to represent inches.

http://en.wikipedia.org/wiki/Prime_(symbol)

This is done by wptexturize(), and there's probably not a particularly good solution for it.

#4 @cherylontheweb
17 years ago

Interesting, thanks for your comments. Inches notation is USA-centric, I've not heard of another country that uses it - given I live in Germany and I can't turn off this USA notation, I would say this is a small bug.

For anyone else with this problem: workaround is not to use quotes around phrases that end in numbers but to use the HTML itself: “your_text”
If rich text editor is on you have to do this in the source.

#5 @lloydbudd
16 years ago

  • Milestone changed from 2.4 to 2.6

#6 @ryan
15 years ago

  • Milestone changed from 2.7 to 2.8

#7 @jacobsantos
15 years ago

  • Keywords needs-patch added

#9 @ryan
15 years ago

  • Component changed from Administration to Formatting
  • Owner anonymous deleted

#10 @ryan
15 years ago

  • Milestone 2.8 deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Duping against #8775, which has a patch.

This ticket was mentioned in Slack in #docs by estelaris. View the logs.


5 years ago

This ticket was mentioned in Slack in #docs by estelaris. View the logs.


5 years ago

Note: See TracTickets for help on using tickets.