public
Created

Show svn revision in the "Right Now" dashboard widget

  • Download Gist
svn-rev.php
PHP
1 2 3 4 5 6 7 8
<?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' );
?>

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.