News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

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

Ryan Malesevich's Blog: More Thoughts on Wordpress 2.1

Greb Beaver\'s Blog: Chiara_PEAR_Server 0.18.4 released

Vid Luther's Blog: Managing Wordpress and other PHP projects with Ruby

Shantanu Goel's Blog: Migrating From PHP4 To PHP5: Solving WP-Cache (and maybe other) Issues

David Coallier's Blog: Namespaces part 4.1 (What namespaces don't fix (part 1))


Community Events





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


threedevsandamaybe install unittest configure release application code podcast introduction list language developer community wordpress laravel interview testing series api library

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