[wp-trac] [WordPress Trac] #5740: editing custom post_type posts overrides the post_type

WordPress Trac wp-trac at lists.automattic.com
Thu Jan 31 12:35:46 GMT 2008


#5740: editing custom post_type posts overrides the post_type
----------------------------+-----------------------------------------------
 Reporter:  DD32            |       Owner:  anonymous
     Type:  defect          |      Status:  new      
 Priority:  normal          |   Milestone:  2.5      
Component:  Administration  |     Version:  2.5      
 Severity:  normal          |    Keywords:  has-patch
----------------------------+-----------------------------------------------
 I'm writing a plugin at present which uses a custom page_type when storing
 it in the DB, However, I'd like to retain the "Edit Post" functionality.

 At present, If you edit a post of any post_type then the post_type gets
 overridden to simple "post" regardless of what it originally was.

 I've attached a patch to correct this. (While using either the page or the
 post editor to edit a non-post/non-page item)

 (edit-form-advanced.php / edit-page-form.php look remarkably similar to
 me.. Is there any real reason why the page/post editors are not one and
 the same? I'm undecided which one's better suited for editing my custom
 posts atm)

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


More information about the wp-trac mailing list