[wp-trac] [WordPress Trac] #38280: Make term count for a specific object type available
WordPress Trac
noreply at wordpress.org
Fri Jun 15 06:30:55 UTC 2018
#38280: Make term count for a specific object type available
--------------------------------------+------------------------------
Reporter: desrosj | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: 4.7
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+------------------------------
Comment (by ivankristianto):
@boonebgorges it's because we use {{{term_taxonomy_id}}} in
{{{_update_post_term_count}}} argument. while we do {{{update_term_meta}}}
and {{{delete_term_meta}}} which accept {{{term_id}}}\\
So back to the case where {{{term_id}}} is not equal to
{{{term_taxonomy_id}}} issue.\\
\\
I upload patch [[attachment:38280.11.diff]] to query back to get the
{{{term_id}}} for this purpose.
\\
But it cause 1 test failed from
{{{test_termmeta_cache_should_not_be_primed_when_update_term_meta_cache_is_false}}}
which I don't understand why. Can you please help?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38280#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list