[wp-trac] [WordPress Trac] #52626: Block editor doesn't paginate parent page results

WordPress Trac noreply at wordpress.org
Tue Feb 23 17:39:36 UTC 2021


#52626: Block editor doesn't paginate parent page results
--------------------------+------------------------------
 Reporter:  hobzhobz      |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Editor        |     Version:  5.6.2
 Severity:  major         |  Resolution:
 Keywords:                |     Focuses:  rest-api
--------------------------+------------------------------

Comment (by hobzhobz):

 WORKAROUND (VERY UGLY/HACKY)

 1. Copy the contents of wp-includes/js/dist/editor.js to wp-
 includes/js/dist/editor.min.js  (because the minified version is annoying
 to edit)

 2. Edit wp-includes/js/dist/editor.min.js line 7214,, Change per_page: 100
 to per_page: 10000 (or whatever you need for your site)

 3. Edit wp-includes/rest-api/endpoints/class-wp-rest-controller.php line
 356, change 'maximum' => 100 to 'maximum' => 10000 (or whatever you set in
 step 2)

 With this hack you no longer need the menu_order fix, because now they all
 come in the same response without pagination so the ordering doesnt
 matter.

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


More information about the wp-trac mailing list