Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Show svn revision in the "Right Now" dashboard widget
function pm_right_now_svn_revision() {
if ( ! $svn = File( '.svn/entries' ) )
echo "<p>SVN Revision: {$svn[3]}</p>";
add_action( 'rightnow_end', 'pm_right_now_svn_revision' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment