#5740 closed defect (bug) (duplicate)
editing custom post_type posts overrides the post_type
| Reported by: | DD32 | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Administration | Version: | 2.5 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
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)
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Duplicate of #4991, which could use the edit page form patch though.