Skip to content
Create a gist now

Instantly share code, notes, and snippets.

Show svn revision in the "Right Now" dashboard widget
<?php
function pm_right_now_svn_revision() {
if ( ! $svn = File( '.svn/entries' ) )
return;
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
Something went wrong with that request. Please try again.