[wp-trac] [WordPress Trac] #37782: Duplicate Page Entry in View All Pages when generating a Menu
WordPress Trac
noreply at wordpress.org
Tue Feb 12 09:06:59 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
-------------------------------------+-------------------------------------
Comment (by birgire):
ps: another approach might be to avoid duplications when we click on
"Select All" (javascript) or when we view (PHP):
{{{
/wp-admin/nav-menus.php?page-tab=all&selectall=1#posttype-page
}}}
The PHP case is here:
https://core.trac.wordpress.org/browser/tags/5.0.3/src/wp-admin/includes
/nav-menu.php#L552
and here the JS case:
https://core.trac.wordpress.org/browser/tags/5.0.3/src/wp-admin/js/nav-
menu.js#L1085
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37782#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list