Programmatically check latest WP release?
-
Is there an easy way to programmatically check the current WP version number? My options as I see them currently are:
- Parse the output from https://svn.automattic.com/wordpress/tags
- Screen-scrape the download page.
- Download https://www.ads-software.com/latest and parse the filename.
But I’m hoping there’s a better way. I need to check them out from Subversion so I can’t just download that zip file at /latest.
Ideally, there would be a version.txt file or something on the WP site containing just the current version number. Failing that, is there something else I could check for this information?
Thanks!
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Programmatically check latest WP release?’ is closed to new replies.