WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#7170 closed defect (bug) (fixed)

AJAX adding post meta does not respect the change from temp_ID to post_ID

Reported by: mdawaffe Owned by:
Milestone: 2.6 Priority: normal
Severity: normal Version:
Component: General Keywords:
Focuses: Cc:

Description

When writing a new post, the temp_ID is hardcoded into the javascript for the AJAX based post meta addition. When the temp_ID is converted to a post_ID, that javascript becomes out of date and subsequent meta additions get added to additional new posts rather than the correct post.

Attached gets rid of the hardcoding and finds the correct post ID dynamically.

Attachments (1)

7170.diff (1.2 KB) - added by mdawaffe 7 years ago.

Download all attachments as: .zip

Change History (3)

@mdawaffe7 years ago

comment:1 @ryan7 years ago

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

(In [8177]) Respect post_ID update when doing multiple add meta AJAX requests. Props mdawaffe. fixes #7170 see #6457

comment:2 @ryan7 years ago

(In [8178]) Respect post_ID update when doing multiple add meta AJAX requests. Props mdawaffe. fixes #7170 see #6457 for 2.5

Note: See TracTickets for help on using tickets.