[wp-trac] [WordPress Trac] #11205: Behaviour when parent page is trashed is undefined
WordPress Trac
wp-trac at lists.automattic.com
Fri Nov 20 19:55:13 UTC 2009
#11205: Behaviour when parent page is trashed is undefined
----------------------------+-----------------------------------------------
Reporter: sirzooro | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.9
Component: Administration | Version: 2.9
Severity: normal | Keywords: needs-patch
----------------------------+-----------------------------------------------
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[[BR]]
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.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11205>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list