[wp-trac] [WordPress Trac] #54065: Docs: clarify that `term_id` is a valid value of the `field` parameter of `get_term_by()`
WordPress Trac
noreply at wordpress.org
Sun Sep 5 11:06:13 UTC 2021
#54065: Docs: clarify that `term_id` is a valid value of the `field` parameter of
`get_term_by()`
--------------------------+-----------------------------
Reporter: audrasjb | Owner: SergeyBiryukov
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.9
Component: Taxonomy | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses: docs
--------------------------+-----------------------------
Changes (by SergeyBiryukov):
* owner: (none) => SergeyBiryukov
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"51731" 51731]:
{{{
#!CommitTicketReference repository="" revision="51731"
Docs: Сlarify that `term_id` is a valid value for the `$field` parameter
of `get_term_by()`.
As `term_id` is the actual property name of the `WP_Term`, it should
appear first and we should make it more clear that `id` and `ID` are
aliases.
Follow-up to [6254], [25334], [38677], [47865], [47870].
Props gazchap, audrasjb.
Fixes #54065.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54065#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list