Tested for WordPress 4.0