[wp-trac] [WordPress Trac] #39648: Wordpress is unable to query post types with hierarchical set to 'true' when there is 'order' registred post type

WordPress Trac noreply at wordpress.org
Fri Jan 20 09:03:24 UTC 2017


#39648: Wordpress is unable to query post types with hierarchical set to 'true'
when there is 'order' registred post type
-------------------------------+-----------------------------
 Reporter:  MateuszP1          |      Owner:
     Type:  defect (bug)       |     Status:  new
 Priority:  normal             |  Milestone:  Awaiting Review
Component:  Posts, Post Types  |    Version:  4.7
 Severity:  normal             |   Keywords:
  Focuses:                     |
-------------------------------+-----------------------------
 Problem occurs when you register post type named 'order'
 {{{#!php
 <?php
 $labels = array(
 "name" => "Orders",
 "singular_name" => "Order",
 );

 $args = array(
 "labels" => $labels,
 "description" => "",
 "public" => true,

 );
 register_post_type("order", $args);
 }}}

 it breaks queries of posts types with hierarchical set to true, even
 'page' post type.
 See:
 wp-admin/edit.php?post_type=page
 after registering this post type.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39648>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list