[wp-trac] [WordPress Trac] #18629: Show SVN revision in 'right now' (and footer)
WordPress Trac
wp-trac at lists.automattic.com
Sat Sep 10 05:53:06 UTC 2011
#18629: Show SVN revision in 'right now' (and footer)
----------------------------+------------------------------
Reporter: Ipstenu | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: 3.3
Severity: normal | Resolution:
Keywords: |
----------------------------+------------------------------
Comment (by dd32):
I'm pretty sure there's been a ticket on this before, But I can't seem to
find it..
My prefered method would be something such as this:
{{{
wp-includes/version.php
$wp_version = '3.2.1';
if ( file_exists(ABSPATH . '.svn/entries') ) {
$svn = file(ABSPATH . '.svn/entries');
$wp_version .= '-r' . $svn[3];
unset($svn);
}
}}}
That has the advantage of the revision showing up everywhere, it shouldn't
affect version_compare() either as that should hopefully ignore the
non-"versiony" extension.
It could even be changed to simply {{{if ( is_admin() &&
file_exists()..)}}} (Assuming is_admin() exists there, else just fall back
to {{{if ( defined('WP_ADMIN') && ...}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18629#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list