Sergey Biryukov
4fb57210cd
Update the parameter docs for wp_add_post_tags(), wp_set_post_tags(), and wp_set_post_terms().
...
Props johnbillion.
Fixes #33749 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33931 602fd350-edb4-49c9-b593-d223f7449a82
2015-09-06 00:11:56 +00:00
John Blackbourn
6bfd06d5c8
Function docs for the tax_input and meta_input parameters available for wp_insert_post().
...
See #20451
git-svn-id: https://develop.svn.wordpress.org/trunk@33922 602fd350-edb4-49c9-b593-d223f7449a82
2015-09-05 21:01:37 +00:00
Scott Taylor
26dd8b5b08
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 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33910 602fd350-edb4-49c9-b593-d223f7449a82
2015-09-05 19:49:53 +00:00
Sergey Biryukov
28767e1bac
In get_post_type_labels(), ensure that filtered labels contain all required default values.
...
fixes #33543 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33776 602fd350-edb4-49c9-b593-d223f7449a82
2015-08-28 03:38:26 +00:00
Scott Taylor
718c1a8d25
Posts: move WP_Post into its own file. post.php loads the new files, so this is 100% BC if someone is loading post.php directly. New files created using svn cp.
...
Creates:
`class-wp-post.php`
`post-functions.php`
`post.php` contains only top-level code. Class file only contains the class. Functions file only contains functions.
See #33413 .
git-svn-id: https://develop.svn.wordpress.org/trunk@33759 602fd350-edb4-49c9-b593-d223f7449a82
2015-08-26 12:39:07 +00:00