Added function to check for WP version