• I wondered if and where is published the official version of WordPress, so that we could reliably grab it by one method or another.
    I am working on a wordpres version detection script for my hosting server, and would like an official, reliable source to read the current version from.

    Any tip ?

    Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter dsaunier

    (@dsaunier)

    I guess if the sentence “The latest stable release of WordPress (Version xxx) is available” never changes one bit, it could be done by scraping, but it’s not the strict method I’d like to use.
    My question was about being to read the version number and nothing else.
    Thanks.

    The last version is listed at the bottom of https://www.ads-software.com/download/release-archive/ but there’s no way of knowing if the current version number incremented by 0.0.1 or 0.1 etc.

    Have a look in wp-includes/update.php in case there’s anything in there that you could re-use.

    Thread Starter dsaunier

    (@dsaunier)

    The page bottom displays 3.0.2 whereas 3.0.3 just came out, so I guess I have to keep digging….

    Thread Starter dsaunier

    (@dsaunier)

    wp_version_check function within that file seems a good start, thanks.

    No problem. I’m pretty sure there is a version check in core somewhere but the more recent recommendations for themes (and plugins) is to check for specific core functions as needed rather than relying on a version number check. So I’ve forgotten what I used to use a while back.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Official source for WordPress version’ is closed to new replies.