[wp-trac] [WordPress Trac] #46228: wp_insert_post_data should include $update
WordPress Trac
noreply at wordpress.org
Tue Feb 8 12:22:43 UTC 2022
#46228: wp_insert_post_data should include $update
------------------------------------+-----------------------------
Reporter: nhadsall | Owner: SergeyBiryukov
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.0
Component: Posts, Post Types | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch dev-feedback | Focuses:
------------------------------------+-----------------------------
Changes (by SergeyBiryukov):
* owner: (none) => SergeyBiryukov
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"52691" 52691]:
{{{
#!CommitTicketReference repository="" revision="52691"
Posts, Post Types: Pass the `$update` parameter to `wp_insert_post_data`
and `wp_insert_attachment_data` filters.
This makes it easier to determine in a callback function whether this is
an existing post being updated or not.
Follow-up to [8635], [8702], [27130], [27138], [28106], [28788], [47633].
Props nhadsall, mukesh27.
Fixes #46228.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46228#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list