Make WordPress Core

Opened 20 years ago

Closed 20 years ago

#3097 closed defect (bug) (fixed)

#2390 and [4117] break ajax post meta and sometimes draft saving

Reported by: mdawaffe Owned by: mdawaffe
Priority: normal Milestone: 2.1
Component: Administration Version: 2.1
Severity: normal Keywords: has-patch 2nd-opinion
Cc: Focuses:

Description

[4117] causes wp_insert_post() to bail if the title and content are empty.

Ajax post meta is broken: When meta data is added on a fresh post (i.e., one that has not yet been saved to the DB), ajax post meta creates an empty post onto which it attaches the meta data. This is no longer possible.

Saving drafts is sometimes broken: Suppose someone starts writing the excerpt but does not yet have a title nor anything in the post box. Saving it as a draft kills their work.

Attachments (1)

3097.diff​ (591 bytes ) - added by mdawaffe 20 years ago.
post_title => "Draft created on $date at $time"

Download all attachments as: .zip

Change History (5)

#1 @ryan
20 years ago

[4259] for the excerpt issue. Not sure what to do about ajax post meta. Use a temporary title?

@mdawaffe
20 years ago

post_title => "Draft created on $date at $time"

#2 @mdawaffe
20 years ago

How's this?

3097.diff

  1. post_title => "Draft created on $date at $time"

#3 @mdawaffe
20 years ago

  • Keywords has-patch 2nd-opinion added
  • Owner changed from anonymous to mdawaffe
  • Status new → assigned

#4 @ryan
20 years ago

  • Resolution → fixed
  • Status assigned → closed

(In [4570]) Use temporary title when creating empty posts. Props mdawaffe. fixes #3097

Note: See TracTickets for help on using tickets.