updated with more WP and PHP versions