Skip to content

Instantly share code, notes, and snippets.

@PeteMall
Created September 9, 2011 16:49
Show Gist options
  • Save PeteMall/1206714 to your computer and use it in GitHub Desktop.
Save PeteMall/1206714 to your computer and use it in GitHub Desktop.
Show the svn revision in admin footer.
<?php
function pm_svn_revision( $msg = '' ) {
if ( $svn = File( '.svn/entries' ) )
$msg .= ' SVN Revision: ' . $svn[3];
return $msg;
}
add_action( 'update_footer', 'pm_svn_revision', 99 );
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment