[wp-trac] [WordPress Trac] #37782: Duplicate Page Entry in View All Pages when generating a Menu

WordPress Trac noreply at wordpress.org
Mon Feb 11 16:45:41 UTC 2019


#37782: Duplicate Page Entry in View All Pages when generating a Menu
-------------------------------------+-------------------------------------
 Reporter:  garrett-eclipse          |       Owner:  garrett-eclipse
     Type:  defect (bug)             |      Status:  accepted
 Priority:  normal                   |   Milestone:  5.2
Component:  Menus                    |     Version:  3.0
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:  ui, administration,
  has-unit-tests                     |  privacy
-------------------------------------+-------------------------------------
Changes (by birgire):

 * keywords:  has-patch needs-testing => has-patch needs-testing has-unit-
     tests


Comment:

 [attachment:"37782-test.diff"] is a first draft for
 {{{wp_nav_menu_item_post_type_meta_box()}}} tests used by the meta boxes
 on the {{{/wp-admin/nav-menus.php}}} admin page.

 Contains the following test cases:

 - The function should contain no items without pages
 - The function should include a page only once, when viewing all pages.
 - The function should include the front page only once, when viewing all
 pages.

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


More information about the wp-trac mailing list