Fix WP version test for "latest" case.