Ticket #5740 (closed defect: duplicate)

Opened 10 months ago

Last modified 10 months ago

editing custom post_type posts overrides the post_type

Reported by: DD32 Assigned to: anonymous
Priority: normal Milestone:
Component: Administration Version: 2.5
Severity: normal Keywords: has-patch
Cc:

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)

Attachments

5740.diff (2.1 kB) - added by DD32 on 01/31/08 12:36:52.

Change History

01/31/08 12:36:52 changed by DD32

  • attachment 5740.diff added.

01/31/08 14:55:08 changed by filosofo

  • status changed from new to closed.
  • resolution set to duplicate.

Duplicate of #4991, which could use the edit page form patch though.

01/31/08 15:37:55 changed by lloydbudd

  • milestone deleted.