News Feed
Jobs Feed
Sections




News Archive
Rob Allen's Blog:
Fixing -- in WordPress
March 23, 2009 @ 07:53:20

After being frustrated that the WordPress blogging system was "eating" his double dashes (like in a ./configure string), Rob Allen went on the offensive and dove into the WordPress code to fix things.

One thing that I've noticed is that whenever I used -- in a post, such as this one, WordPress converted the -- to &emdash; which whilst very pretty doesn't work so well for people trying to understand command line switches. [...] I tracked it down to the wptexturize function in the wp-includes/functions-formatting.php file.

He found and used this plugin (disable_wptexturize) and the issue disappeared.

0 comments voice your opinion now!
dash wordpress fix emdash replace plugin wptexturize


blog comments powered by Disqus

Similar Posts

Alex Mills' Blog: Why WordPress Doesn't Have Built-In Persistent Caching

Symfony Blog: Top 20 symfony plugins

Weblogtoolscollection.com: Is WordPress A Thankless Community?

ProDevTips.com: WP Hashcash

AskAboutPHP.com: Codeigniter: Helpers, Plugins and Libraries


Community Events











Don't see your event here?
Let us know!


object introduction zendframework2 testing database release interview composer framework series development code functional example podcast opinion api conference language community

All content copyright, 2013 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework