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 http://svn.automattic.com/wordpress/tags
- Screen-scrape the download page.
- Download http://wordpress.org/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?
- The topic ‘Programmatically check latest WP release?’ is closed to new replies.