updated for WordPress 3.9.2