Yes, that would work. But it’s highly superfluous, because wordpress is doing its best to make “nice” characters (and there are a lot more than ellipses) and I’m undoing all that. Seems like a lot of wasted CPU cycles for absolutely nothing.
I dug in the code a little bit, and soom found out that wptexturize
is responsible for replace a whole buttload of characters and expressions by prettier things. Yes, prettier, but *not* what I type. I want to have control.
So my search went on to find out why it was being called at all, because it isn’t. Not for content anyway. Seems that wordpress abuses php’s functionality of calling functions by name rather than reference, for plugin-ish functionality. Really oldskool.
Anyway, in the end, this fixes things:
remove_filter('the_content', 'wptexturize');
And presto. Normal characters again.
(Actually there are a LOT of filters for which wptexturize
is added, but I won’t sum them all up, they’re in default-filters.php
)