Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #45171


Ignore:
Timestamp:
10/24/2018 10:20:12 PM (5 years ago)
Author:
DrewAPicture
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #45171 – Description

    initial v1  
    33This 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()`.
    44
     5{{{
     6#!php
     7 *     @type array  $post_category         Array of category names, slugs, or IDs.
     8}}}
     9
    510The fix should remove reference to "names" and "slugs" in the `$post_category` entry in the hash notation for `wp_insert_post()`.