WordPress.org

Make WordPress Core

Opened 7 years ago

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

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

Download all attachments as: .zip

Change History (3)

mdawaffe7 years ago

comment:1 mdawaffe7 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.

comment:2 ryan7 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.