[wp-trac] [WordPress Trac] #11209: Problem when Trash is disabled when something is already trashed

WordPress Trac wp-trac at lists.automattic.com
Fri Nov 20 21:03:34 UTC 2009


#11209: Problem when Trash is disabled when something is already trashed
--------------------------+-------------------------------------------------
 Reporter:  sirzooro      |       Owner:             
     Type:  defect (bug)  |      Status:  new        
 Priority:  normal        |   Milestone:  2.9        
Component:  Trash         |     Version:  2.9        
 Severity:  normal        |    Keywords:  needs-patch
--------------------------+-------------------------------------------------
 When someone has some items trashed and then disable Trash (define
 EMPTY_TRASH_DAYS to 0), problems will appear:[[BR]]
 - all trashed items disappears from admin UI;[[BR]]
 - pages with trashed parents cannot be used as parents for other pages
 (they are not on the list);[[BR]]
 - WP displays following PHP notices for every trashed page and page with
 trashed parent while displaying list of possible parent pages for edited
 page.[[BR]]
 Notice: Undefined offset: 2 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

 There may be more issues related to this.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11209>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list