Added function to check WP version