[wp-trac] [WordPress Trac] #39077: Navigation menu items should be defined as being hierarchical

WordPress Trac noreply at wordpress.org
Tue Oct 24 01:05:03 UTC 2017


#39077: Navigation menu items should be defined as being hierarchical
-------------------------------------+-----------------------------
 Reporter:  schlessera               |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Future Release
Component:  Menus                    |     Version:  3.0
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+-----------------------------
Changes (by netweb):

 * keywords:  has-patch commit => has-patch needs-testing
 * milestone:  4.9 => Future Release


Comment:

 The ''hierarchical'' parameter of `register_post_type()` is not clear cut
 as the verbiage might suggest:

 Via https://codex.wordpress.org/Function_Reference/register_post_type

 > ''"hierarchical Note: this parameter was intended for Pages. Be careful
 when choosing it for your custom post type - if you are planning to have
 very many entries (say - over 2-3 thousand), you will run into load time
 issues. With this parameter set to true WordPress will fetch all IDs of
 that particular post type on each administration page load for your post
 type. Servers with limited memory resources may also be challenged by this
 parameter being set to true."''

 Punting as testing for this should occur whilst not in beta, I also
 believe there other concerns relating to the use of hierarchical post
 types that needs to be researched here

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


More information about the wp-trac mailing list