A WordPress filter to avoid widows in your titles

When you’re a designer who codes (or a developer who designs), you end up obsessing over stupid things like making sure you don’t end up with widows in your titles (a single word that wraps to a new line).

Here’s a small filter you can throw in your functions.php file to replace the last space in your titles with a   character.