Better title handling for WordPress 4.1. See #644.