WordPress.org

Make WordPress Core

Opened 8 years ago

Closed 7 years ago

#8323 closed defect (bug) (duplicate)

em-dash Should be en-dash in wptexturize()

Reported by: misieg772 Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.7
Component: Formatting Keywords: needs-patch
Focuses: Cc:

Description

there is a bug in wptexturize - when i type two hyphens into post box:

--

above is converted to em-dash (—) which is wrong. it should be converted to en-dash (–)

regards, grzegorz

Attachments (2)

formatting.php (68.6 KB) - added by jamierumbelow 8 years ago.
8323.diff (988 bytes) - added by jacobsantos 8 years ago.
diff of above file.

Download all attachments as: .zip

Change History (18)

#1 @jamierumbelow
8 years ago

  • Resolution set to fixed
  • Status changed from new to closed

Fixed!

#2 @jacobsantos
8 years ago

  • Resolution fixed deleted
  • Status changed from closed to reopened

Tickets are only fixed if the issue was committed.

#3 @jacobsantos
8 years ago

  • Keywords has-patch needs-testing added; wptexturize removed

#4 @jacobsantos
8 years ago

  • Keywords has-patch removed

@jacobsantos
8 years ago

diff of above file.

#5 @jacobsantos
8 years ago

  • Keywords has-patch dev-feedback added; needs-testing removed

Add diff of attached file.

#6 @jacobsantos
8 years ago

  • Summary changed from en-dash wanished in wptexturize? to en-dash vanished in wptexturize?

#7 @jacobsantos
8 years ago

  • Summary changed from en-dash vanished in wptexturize? to Change em-dash to en-dash in wptexturize()

#8 @jacobsantos
8 years ago

  • Summary changed from Change em-dash to en-dash in wptexturize() to em-dash Should be en-dash in wptexturize()

#9 follow-up: @markjaquith
8 years ago

  • Milestone changed from 2.7 to 2.8

Can someone provide a link to a style resource that confirms that this change is correct?

#10 in reply to: ↑ 9 @joshuagoodwin
8 years ago

Replying to markjaquith:

Can someone provide a link to a style resource that confirms that this change is correct?

The spaced em-dash is regarded as okay by some, however the en-dash should be a option. See http://trac.wordpress.org/ticket/8161

#11 @ryan
8 years ago

  • Component changed from General to Formatting

#12 @Denis-de-Bernardy
8 years ago

  • Keywords needs-patch added; has-patch dev-feedback removed
  • Milestone changed from 2.8 to Future Release

broken patch

#13 @Denis-de-Bernardy
8 years ago

  • Milestone changed from Future Release to 2.9

#14 @azaozz
7 years ago

  • Resolution set to wontfix
  • Status changed from reopened to closed

Agree with markjaquith. If the en dash is needed as an option, that should be handled by a plugin.

#15 @Denis-de-Bernardy
7 years ago

  • Resolution wontfix deleted
  • Status changed from closed to reopened

#16 @Denis-de-Bernardy
7 years ago

  • Milestone 2.9 deleted
  • Resolution set to duplicate
  • Status changed from reopened to closed

#8161 / r10973 (fixed)

Note: See TracTickets for help on using tickets.