Changes between Initial Version and Version 1 of Ticket #45171
- Timestamp:
- 10/24/2018 10:20:12 PM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #45171 – Description
initial v1 3 3 This is due to how adding hierarchical taxonomies terms (like categories) works up the stack in `wp_insert_post()` -> `wp_set_post_categories()` -> `wp_set_post_terms()`. 4 4 5 {{{ 6 #!php 7 * @type array $post_category Array of category names, slugs, or IDs. 8 }}} 9 5 10 The fix should remove reference to "names" and "slugs" in the `$post_category` entry in the hash notation for `wp_insert_post()`.