[wp-trac] [WordPress Trac] #38280: Make term count for a specific object type available
WordPress Trac
noreply at wordpress.org
Fri Jun 15 13:58:46 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 desrosj):
[attachment:38280.13.diff] removes `bool` from the
`wp_get_etrm_count_for_object_type()` inline documentation and adds the
taxonomy to the first `WP_Error` that is returned when a taxonomy does not
exist. Also fixes a 3 minor alignment and spacing issues in the unit tests
to adhere to the coding standards.
@boonebgorges Do you think adding a return value to
`_update_post_term_count()` is realistic? It is a pretty old function
(2.3), but adding a return value (or at least a `false` return when it
fails) would solve the infinite loop issue.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38280#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list