I wanted to add my build number from Subversion to my about window. Pretty simple by adding this code:

It works but puts too much info like:

I want to ignore the “M”, the colon and the number to the left of the colon. Getting rid of the “M” was easy:
![]()
I would do the same for the colon. But the number to the left of the colon changes. After a suggestion on the Real Software forums I added this:
![]()
Now I just see the build number and nothing else. Of course this will only work on your local copy. In order to permanently hard code it in I would need to create an IDE script to change the NonReleaseVersion number. So I did the following:

Then just add your build settings the the bottom of this.
So there you have it!
1 response so far ↓
1 admin // Jan 9, 2008 at 10:37 am
Wow, Wordpress has been a royal pain in the butt with line breaks all of a sudden. I changed the theme hoping to fix it but no go. At least I can do them in HTML now which is probably easier.
Leave a Comment