Global refactoring and WordPress 3.8 compatibility