-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Avoid needing to update tests for every WordPress release #4
Comments
We can directly use |
I tried out a more hacky scheme that scrapes https://wordpress.org/download/release-archive/ to get the latest subversions of all versions and puts them in an array that can be accessed by special {WP_VERS[ver]} variables - see gitlost#2. |
@gitlost Why not use |
Yes that's the best way. (I thought I'd need the previous versions too and didn't want to have to do the version decrement maths - but it turned out they're not needed. Also it was quite handy to deal with the preg arrays!) |
What do you think of the "{WP_VERS[ver]}" scheme - is it worth pursuing? |
It's confusing and I don't quite understand it. I think it'd be better to go with something simpler. |
This looks good. Can you submit the PR against this repo, and also against |
Instead of #3 and wp-cli/wp-cli#3880, we should come up with some reliable abstraction that means we don't have to update tests fro every WordPress release.
The text was updated successfully, but these errors were encountered: