[wp-trac] [WordPress Trac] #20451: wp_insert_post() should accept a meta_input argument
WordPress Trac
noreply at wordpress.org
Sat Sep 5 19:49:55 UTC 2015
#20451: wp_insert_post() should accept a meta_input argument
-------------------------------+-----------------------------
Reporter: johnbillion | Owner: wonderboymusic
Type: enhancement | Status: closed
Priority: low | Milestone: 4.4
Component: Posts, Post Types | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch commit | Focuses:
-------------------------------+-----------------------------
Changes (by wonderboymusic):
* owner: => wonderboymusic
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"33910"]:
{{{
#!CommitTicketReference repository="" revision="33910"
Allow `wp_insert_post()` to accept a `meta_input` argument. Devs should
use `register_meta()` to ensure that specific values specified by key are
sanitized properly.
Adds unit test.
Props CoenJacobs, swissspidy.
Fixes #20451.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/20451#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list