[wp-trac] [WordPress Trac] #37782: Duplicate Page Entry in View All Pages when generating a Menu
WordPress Trac
noreply at wordpress.org
Tue Sep 25 07:57:14 UTC 2018
#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: Awaiting Review
Component: Menus | Version: 3.0
Severity: normal | Resolution:
Keywords: has-patch needs-testing | Focuses: ui, administration
-------------------------------------+---------------------------------
Comment (by garrett-eclipse):
I've just put out another revision as [37782.5.diff]
This version uses the post__not_in argument on the WP_Query. But I had to
do a check when the only pages returned are 'important' as so would be
suppressed form the query making pagination fail, in this case I drop the
suppress and prepend and just rely on the WP_Query results.
I've also updated the _post_status to support an $echo param.
And attached is a screen from my test environment.
Feedback and direction appreciated
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37782#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list