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

WordPress Trac noreply at wordpress.org
Wed Apr 29 09:02:24 UTC 2015


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

Comment (by 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].

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


More information about the wp-trac mailing list