Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[CORE] Bug: Select parent as himself #777
Describe your problem
When the user is editing the page, the user can select the same page that is editing as a parent.
The page does not need to appear on the list as a parent.
Steps to reproduce the problem
Manage > Content > Edit a page and select it as a parent in Option tab.
added a commit
Jan 1, 2019
I used the HTTP_REFERER global to solve this issue (within a plugin), but this global may don't get send by the browser or just lies. So I guess the best solution would be to just pass the current slug within the AJAX request like on this possible way (It also pass the current slug to the
Happy new Year.