Fix failing tests due to WordPress version update

Also fixes use of `version_compare()` to sort WordPress versions.