Opened 7 years ago
Closed 7 years ago
#3098 closed defect (bug) (fixed)
Ajax post meta can unintentionally set post options
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| 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)
Change History (3)
Note: See
TracTickets for help on using
tickets.
Patch also simplifies the logic a bit.