Opened 19 years ago
Closed 19 years ago
#3098 closed defect (bug) (fixed)
Ajax post meta can unintentionally set post options
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 2.1 | Priority: | normal |
| Severity: | normal | Version: | 2.1 |
| Component: | Administration | Keywords: | has-patch commit |
| Focuses: | 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.