Background: I have a live web server and a test web server. The test server contains code that will be on the live server very soon. The live server displays straight quotes and the test server displays smart or curly quotes in posts. I hate curly quotes.
After using my brain, I determined that the problem was that I am using a different WordPress function to display the contents of each post. The function on the live server, get_the_content();, displays straight quotes. The function on the test server, the_content();, displays curly quotes. I hate curly quotes.
I did a bit of searching on the WP support forum and came across this topic that has a hack to the WP code that works well. The downside is that I don’t really like having to modify the WP code, but I like curly quotes even less so I’m OK with this for now. I’ll just have to remember about this when I upgrade.
There are other solutions I still want to investigate, like plugins that replace the curly quotes, but I wonder why WP would be replacing my nice straight quotes in favor of ugly curly quotes? I’m sure the Internet has the answers I crave and some day I might find them. For now, though, I’m tired of looking. I know there are WP users that read my site. Have you guys noticed this alarming behavior?
Finally, if you’ve been paying attention, you might be asking yourself why I would be using a different function to deliver the content if it doesn’t work the way I want it to. Well, it actually does other things better that I am willing to make sacrifices for. But, not curly quotes, I hate those bitches.
My blog is so topical.
As a side note, I’m noticing a 2 tenths of a second speed increase on my test server after removing the special filtering. Score.
Why is it that you hate curly quotes?
Cyanbane
Thursday, November 24, 2005 02:09:59 am
I literally just had an hour meeting this past week about smart quotes. Some article writers were writing in MS Word and posting to a directly interpreted asp page from their articles stored in the db, and all the apostrophes and sdouble quotes were getting written down via the MS Word character. Totally sucked. -1 for MS.