Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #59215, comment 3


Ignore:
Timestamp:
08/28/2023 05:10:32 PM (10 months ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #59215, comment 3

    initial v1  
    11Hi there, welcome to WordPress Trac! Thanks for the ticket.
    22
    3 Looking at the PR, it does not appear to be correct (as demonstrated by the failing unit tests), because the third parameter of `wp_set_post_terms()` is the taxonomy name, not the post type. Looking further, the post type does not seem relevant at all, since the underlying `wp_set_object_terms()` does not use it, only the post ID.
     3Looking at the PR, it does not appear to be correct (as demonstrated by the failing unit tests), because the third parameter of `wp_set_post_terms()` is the taxonomy name, not the post type. Looking further, the post type does not seem relevant at all, since the underlying `wp_set_object_terms()` function does not use it, only the post ID.
    44
    55> so `wp_set_post_categories` is not working to map custom category with custom post type.