Opened 7 years ago

Closed 6 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:

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 7 years ago.
post_title => "Draft created on $date at $time"

Download all attachments as: .zip

Change History (5)

comment:1   ryan7 years ago

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

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

How's this?

3097.diff

  1. post_title => "Draft created on $date at $time"
  • Keywords has-patch 2nd-opinion added
  • Owner changed from anonymous to mdawaffe
  • Status changed from new to assigned

comment:4   ryan6 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

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

Note: See TracTickets for help on using tickets.