Make WordPress Core

Opened 20 years ago

Closed 20 years ago

#3098 closed defect (bug) (fixed)

Ajax post meta can unintentionally set post options

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

Description

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 20 years ago.

Download all attachments as: .zip

Change History (3)

@mdawaffe
20 years ago

#1 @mdawaffe
20 years ago

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

Patch also simplifies the logic a bit.

#2 @ryan
20 years ago

  • Resolution → fixed
  • Status assigned → closed

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

Note: See TracTickets for help on using tickets.