improve WP version check