Get bIDs of current version

Would be great if it could get the bIDs of the current page version. I ran into a trouble working a project with this.
Merge pull request #1076 from hamsterbacke82/patch-2

Get bIDs of current version