Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#4532 closed defect (bug) (fixed)

Saving a post with attachments deletes the post's tags

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


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

Download all attachments as: .zip

Change History (7)

#1 @foolswisdom
8 years ago

  • Version set to 2.3

#2 @ryan
8 years ago

  • Priority changed from normal to high

#3 follow-up: @ryan
8 years ago

Still a problem.

#4 in reply to: ↑ 3 @filosofo
8 years ago

Replying to ryan:

Still a problem.

Do you mean the patch doesn't fix it?

#5 @ryan
8 years ago

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

#6 @ryan
8 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.