Make WordPress Core

Opened 21 years ago

Closed 21 years ago

Last modified 21 years ago

#65 closed defect (bug) (invalid)

Disable fancy quotes and dashes for some (all?) posts

Reported by: anonymousbugger's profile anonymousbugger Owned by: matt's profile matt
Milestone: Priority: normal
Severity: trivial Version: 1.2
Component: General Keywords:
Focuses: Cc:

Description

There is a formatting function that switches your basic single quote to a nice sloped leading / trailing quote, two hyphens in a row become a nice dash, and so on and so forth.

Anyhow, I like to keep code snippets (unix command line or html fragments) in my blog entries. Then when I need to re-use them, i can just copy and past them. So I had some entries which should have rendered html comment code <!-- something sweet --> that should render nicely into the blog and be copy and pastable. Instead they cut and paste as <something sweet>.

I am now killing it for all posts by editing the file wp-includes/functions-formatting.php

function wptexturize($text) {
return $text;
.....

So it's annoying, and looks like it should be configurable.

Change History (4)

#2 @anonymousbugger
21 years ago

Guess i should preview more. <something sweet> did really render as <!something sweet> when i pasted it, but the special dashes don't. This was just a trivial example. I hope the bug was self-evident.

#3 @matt
21 years ago

  • Owner changed from anonymous to matt
  • Resolution changed from 10 to 70
  • Status changed from new to closed

I suggest you look into the remove_filter function, basic encoding of HTML entities, and the use of the my-hacks.php file. It takes just a few lines of remove_filter()s to disable Texturize throughout WordPress and there are a few plugins that already do this.

This is not a bug. Closing.

Note: See TracTickets for help on using tickets.