Behaviour when parent page is trashed is undefined
|Reported by:||sirzooro||Owned by:|
Create two pages: Parent and Child. Set the former as a parent for the latter. Then trash Parent page. When you start editing the Child page, WP will display two notices:
Notice: Undefined offset: 1 in C:\wordpress29.local\wp-includes\post.php on line 2603
Notice: Trying to get property of non-object in C:\wordpress29.local\wp-includes\post.php on line 2603
It should be easy to remove these warnings. But there is another problem: when you save Child post, you will lost Parent-Child relation. Keep in mind that user may want to untrash the Parent page later.