[wp-hackers] On Subversion and 2.5.x-alpha not being in Trunk

DD32 wordpress at dd32.id.au
Fri May 16 07:37:42 GMT 2008

Pfft, I thought, "Hey!, Why not just setup a external page which redirects  
SVN to the correct tag/branch"

$info =  

$info = explode("\n", $info);
$version = $info[2];

header("Location: http://svn.automattic.com/wordpress/tags/$version");

..You'd think that'd work, but as it turns out, SVN cant actually handle  
301/302 redirections..

On Fri, 16 May 2008 17:11:25 +1000, Alexander Beutl <xel at netgra.de> wrote:

>> I'd suggest having:
>>        http://api.wordpress.org/current-version/1.0/
>> That would return one line that contained just the version string, if it
>> were in place today it would return: 2.5.1
> I don't know if that one is new but take a look at:
> http://api.wordpress.org/core/version-check/1.1/
> which will return the current version in the 3rd line.
> Just if this is any help  for anyone...
> I would like to see a "stable"-Tag or "stable"-Branch too.
> Even if this is a second line one would need to write....
> Wouldn't be comlex to setup some shellscript to do it with only one call

More information about the wp-hackers mailing list