[wp-trac] [WordPress Trac] #38224: Not enough results in menu-page-add-search

WordPress Trac noreply at wordpress.org
Tue Oct 4 09:42:09 UTC 2016


#38224: Not enough results in menu-page-add-search
--------------------------+-----------------------------
 Reporter:  clearsite     |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Menus         |    Version:  4.6.1
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 While editing menu, trying to add a page, searching for the page
 "research" in a database with hundreds! of pages with this word in it,
 looking for that ONE page with just 'research' as title, the page is not
 listed

 admin/includes/nav-menu.php, _wp_ajax_menu_quick_search with type=quick-
 search-posttype-page the WP_Query lists posts_per_page = 10, but the
 search does NOT provide a paginator.

 I call this a bug because it is not working as intended; I assume you
 intended that the search would allow a page to be found, so the bug would
 be "pagination is missing"

 I have hard-coded a -1 to avoid the issue for now

 possible solutions are:
 - add pagination
 - add a filter on the arguments so we can set a different page-size
 without altering the code

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


More information about the wp-trac mailing list