Closed joshuafredrickson closed 6 years ago
No worries. I got carried away and added a second round of changes to the PR too.
These changes should return the actual post_name
for the slug versus basename($permalink)
. The previous method was breaking on page_on_front
by returning the site's URL versus the post_name
.
Thank you so much for your contribution @joshuafredrickson - this is now added in version 1.3.0
both here and on the official WordPress repository.
Beautiful, thanks @joshuafredrickson - I'll review and test in a bit but looks like this will get merged in and pushed today or tomorrow.