[wp-trac] [WordPress Trac] #35146: Warnings are generated for a custom taxonomy named "terms"

WordPress Trac noreply at wordpress.org
Fri Dec 18 00:28:24 UTC 2015


#35146: Warnings are generated for a custom taxonomy named "terms"
--------------------------+------------------------------
 Reporter:  willshouse    |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  4.4
 Severity:  normal        |  Resolution:
 Keywords:  needs-codex   |     Focuses:
--------------------------+------------------------------
Changes (by DrewAPicture):

 * keywords:   => needs-codex


Comment:

 In this instance, I would add "terms" to the reserved keywords list, and
 suggest you prefix your taxonomy or post type slugs as a best practice.

 Seems as if [https://developer.wordpress.org/reference/hooks/get_taxonomy/
 `get_{$taxonomy}`] is being triggered here and mistaken with `get_terms`.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35146#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list