[wp-trac] [WordPress Trac] #32182: register_taxonomy 'fields' hides pages in admin

WordPress Trac noreply at wordpress.org
Sun May 17 01:36:05 UTC 2015


#32182: register_taxonomy 'fields' hides pages in admin
--------------------------+----------------------
 Reporter:  shortye       |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Taxonomy      |     Version:  4.2.1
 Severity:  normal        |  Resolution:  invalid
 Keywords:                |     Focuses:
--------------------------+----------------------
Changes (by boonebgorges):

 * status:  new => closed
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


Comment:

 Replying to [comment:1 SergeyBiryukov]:
 > Confirmed. Caused by `$query['fields'] = 'id=>parent'` in
 `wp_edit_posts_query()` ([source:tags/4.2.1/src/wp-
 admin/includes/post.php?marks=1042#L1034 line 1042]).
 >
 > `'fields'` is one of
 [https://codex.wordpress.org/Class_Reference/WP_Query#Return_Fields_Parameter
 WP_Query parameters], I guess it should be added to the list of
 [http://codex.wordpress.org/Function_Reference/register_taxonomy#Reserved_Terms
 reserved terms].

 Yeah, good find. I've added 'fields' to the list in the Codex. I guess we
 don't enforce these reserved terms anywhere; maybe that's a good project
 for the future. shortye - In the meantime, please use a taxonomy name
 other than 'fields' :)

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


More information about the wp-trac mailing list