Opened 6 years ago

Closed 6 years ago

#4532 closed defect (bug) (fixed)

Saving a post with attachments deletes the post's tags

Reported by: filosofo Owned by: anonymous
Priority: high Milestone: 2.3
Component: Administration Version: 2.3
Severity: major Keywords: has-patch, attachment, tags
Cc:

Description

Saving a post with attachments calls _fix_attachment_links, which in turn calls wp_update_post, which calls wp_get_single_post, which does not return the tags_input values, so the tags get erased.

My patch gets the tags for wp_get_single_post, which requires an adjustment to the terms api that allows one to request the terms' names.

Attachments (1)

tags_with_attachments_fix.diff (1.6 KB) - added by filosofo 6 years ago.

Download all attachments as: .zip

Change History (7)

  • Version set to 2.3

comment:2   ryan6 years ago

  • Priority changed from normal to high

comment:3 follow-up: ↓ 4   ryan6 years ago

Still a problem.

comment:4 in reply to: ↑ 3   filosofo6 years ago

Replying to ryan:

Still a problem.

Do you mean the patch doesn't fix it?

comment:5   ryan6 years ago

No, the patch works. Just meant it hadn't been fixed in svn yet after 3 months. Commit on the way.

comment:6   ryan6 years ago

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

(In [6121]) Don't lose tags when saving a post with attachments. Props filosofo. fixes #4532

Note: See TracTickets for help on using tickets.