Make WordPress Core

#24957 closed defect (bug) (fixed)

Missing argument in wp_publish_post()

Reported by: wpsmith Owned by: 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 20 months ago.

Download all attachments as: .zip

Change History (4)

@wpsmith20 months ago

comment:1 @nacin20 months ago

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

comment:2 @sc0ttkclark20 months ago

  • Cc lol@… added

Good find!

comment:3 @nacin20 months 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.