AJ Clarke @ get_permalink_by_name()

AJ Clarke

This piece of code is great. But if you have made significant revisions to the page (like changing the slug) it gets messed up and shows a slug such as domain/revision-8