[wp-trac] [WordPress Trac] #38435: Wrong documentation for wp_insert_post
WordPress Trac
noreply at wordpress.org
Sun Oct 23 12:36:56 UTC 2016
#38435: Wrong documentation for wp_insert_post
--------------------------+------------------------------
Reporter: nabil_kadimi | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch | Focuses: docs
--------------------------+------------------------------
Changes (by kovshenin):
* keywords: => has-patch
Comment:
Might also be worth fixing the docs in the other related functions:
* wp_set_post_categories
* wp_set_post_terms
For reference, from `wp_set_post_terms`:
{{{
/*
* Hierarchical taxonomies must always pass IDs rather than names so that
* children with the same names but different parents aren't confused.
*/
if ( is_taxonomy_hierarchical( $taxonomy ) ) {
$tags = array_unique( array_map( 'intval', $tags ) );
}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38435#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list