Make WordPress Core

Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#13197 closed defect (bug) (worksforme)

Quick Edit of Custom Post Type deletes all custom fields

Reported by: thomask's profile thomask Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.0
Component: Posts, Post Types Keywords:
Focuses: Cc:

Description

When i use Quick Edit on Custom Post Type (created via this help http://kovshenin.com/archives/extending-custom-post-types-in-wordpress-3-0/), all custom fields are deleted. The same problem has 2 other people (see comments there)

I'm using the latest (today's) nightly version

Change History (2)

#1 @michaelh
15 years ago

  • Milestone 3.0 deleted
  • Resolution set to worksforme
  • Severity changed from blocker to normal
  • Status changed from new to closed
  • Version set to 3.0

Not able to duplicate your problem using Quick Edit on posts created with Jamie Oastler's (idealien) Manager Bio custom post type plugin - http://lists.automattic.com/pipermail/wp-testers/2010-April/012709.html

Since that pastebin expired hopefully Jamie doesn't mind me reposting his code for discussion purposes--see http://wordpress.pastebin.com/q2NtJZ7R

Marking as worksforme. Please reopen if more information comes to light.

#2 @michaelh
15 years ago

Just as a follow-up, the solution to the problem was reported by scribu in response to Deanna's identical problem on the wp-hackers list http://lists.automattic.com/pipermail/wp-hackers/2010-April/031701.html

For the kovshenin.com example, need to add this at the top of the wp_insert_post function:

if ( defined('DOING_AJAX') )
return;
Note: See TracTickets for help on using tickets.