• Just wondering the best way to get the latest version number tag…

    At present I am using the following function, but I fear that the formatting out the tags may change… so I guess the question is there anyway to do it via svn?

    function get_wordpress_latest_version_number(){
            $html = file_get_contents("https://svn.automattic.com/wordpress/tags/");
            if(preg_match_all('@\<li\>\<a href="(.*)"\>@U', $html, $matches)){
                    echo str_replace("/", "", $matches[1][count($matches[1]) - 1]);
            }
    }
  • The topic ‘Keeping up to date with svn’ is closed to new replies.