Make WordPress Core

Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#5740 closed defect (bug) (duplicate)

editing custom post_type posts overrides the post_type

Reported by: dd32's profile DD32 Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.5
Component: Administration Keywords: has-patch
Focuses: 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 (1)

5740.diff (2.1 KB) - added by DD32 17 years ago.

Download all attachments as: .zip

Change History (3)

@DD32
17 years ago

#1 @filosofo
17 years ago

  • Resolution set to duplicate
  • Status changed from new to closed

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

#2 @lloydbudd
17 years ago

  • Milestone 2.5 deleted
Note: See TracTickets for help on using tickets.