Make WordPress Core

Opened 18 years ago

Closed 18 years ago

#3098 closed defect (bug) (fixed)

Ajax post meta can unintentionally set post options

Reported by: mdawaffe's profile mdawaffe Owned by: mdawaffe's profile mdawaffe
Milestone: 2.1 Priority: normal
Severity: normal Version: 2.1
Component: Administration Keywords: has-patch commit
Focuses: Cc:


Ajax post meta currently calls write_post() instead of wp_insert_post(). This can unintentionally set things like comment_status to closed.

Patch attached uses wp_insert_post().

(Full fix requires #3097.)

Attachments (1)

3098.diff (1.0 KB) - added by mdawaffe 18 years ago.

Download all attachments as: .zip

Change History (3)

18 years ago

#1 @mdawaffe
18 years ago

  • Keywords has-patch commit added
  • Owner changed from anonymous to mdawaffe
  • Status changed from new to assigned

Patch also simplifies the logic a bit.

#2 @ryan
18 years ago

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

(In [4157]) Ajax post meta fixes from mdawaffe. fixes #3098

Note: See TracTickets for help on using tickets.