Make WordPress Core

Opened 21 years ago

Closed 20 years ago

Last modified 20 years ago

#1290 closed defect (bug) (fixed)

Smart quotes in <pre> done by mistake

Reported by: Thiemo Owned by:
Priority: normal Milestone:
Component: General Version: 2.1
Severity: minor Keywords: dev-feedback
Cc: Focuses:

Description

Inside of [pre], [code] and some other tags sometimes the "smart replacements" of quotes and so on are done by mistake. Try:

[pre]An "example" [strong]andstrong another "example".pre

The second quotes are replaced, the first are not. I added a fix for this.

Attachments (2)

functions-formatting.php.2.diff (734 bytes ) - added by Thiemo 21 years ago.
functions-formatting.php.diff (707 bytes ) - added by Thiemo 21 years ago.

Download all attachments as: .zip

Change History (8)

#1 @Thiemo
21 years ago

  • PatchNo

#2 @Thiemo
21 years ago

The first patch does not work properly. I added a new one.

#3 @Justinsomnia
20 years ago

  • Resolutionduplicate
  • Status newclosed
  • Version 1.52.0.1

More information and a patch available on #2059 (duplicate)

#4 @Justinsomnia
20 years ago

  • Resolution duplicate
  • Status closedreopened

#5 @rob1n
20 years ago

  • Keywords dev-feedback added
  • Milestone2.2
  • Version 2.0.12.1

Would keeping smart quotes out of PRE's and CODE's be feasible? Sounds like a good idea IMO. I've heard lots of stories of poeple's code being messed up due to copy+pasting curly quotes.

#6 @JeremyVisser
20 years ago

  • Resolutionfixed
  • Status reopenedclosed

This already appears to be fixed. Using WP 2.1.1-alpha.

#7 @foolswisdom
20 years ago

  • Milestone 2.2
Note: See TracTickets for help on using tickets.