Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#24957 closed defect (bug) (fixed)

Missing argument in wp_publish_post()

Reported by: wpsmith's profile wpsmith Owned by: nacin's profile nacin
Milestone: 3.7 Priority: normal
Severity: normal Version:
Component: Posts, Post Types Keywords: has-patch commit
Focuses: Cc:


In light of [24823] and #21450, we need to pass a third argument in wp_publish_post() when calling save_post and wp_insert_post. Essentially wp_publish_post() is updating, so the third arg would be true.

Attachments (1)

24957.patch (531 bytes) - added by wpsmith 11 years ago.

Download all attachments as: .zip

Change History (4)

11 years ago

#1 @nacin
11 years ago

  • Keywords commit added
  • Milestone changed from Awaiting Review to 3.7

#2 @sc0ttkclark
11 years ago

  • Cc lol@… added

Good find!

#3 @nacin
11 years ago

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

In 24977:

Pass $update = true to the save_post and wp_insert_post hooks in wp_publish_post().

see #21450, [24823].

props wpsmith.
fixes #24957.

Note: See TracTickets for help on using tickets.