Disabling “smart” quotes in WordPress posts

WordPress replaces quotation marks with curly equivalents, which is really frustrating when trying to copy and paste code. Add remove_filter('the_content', 'wptexturize'); to the bottom of the theme’s functions.php file.

Interestingly, this doesn’t seem to affect post titles, but that’s okay with me.