Make WordPress Core

Changes between Version 9 and Version 10 of Ticket #52626, comment 4


Ignore:
Timestamp:
07/17/2024 06:49:38 AM (3 months ago)
Author:
hobzhobz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #52626, comment 4

    v9 v10  
    1 WORKAROUND (VERY UGLY/HACKY) (UPDATED: 2023-11-08 for wp 6.4)
     1WORKAROUND (VERY UGLY/HACKY) (UPDATED: 2024-07-17 for wp 6.6) (I cant believe I'm still patching this three years after finding the bug)
    22
    33WARNING: You need to do this after every time you upgrade wordpress.
     
    551. 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)
    66
    7 2. Edit wp-includes/js/dist/editor.min.js line 6401, Change per_page: 100 to per_page: 10000 (or whatever you need for your site)
     72. Edit wp-includes/js/dist/editor.min.js line 9917, Change per_page: 100 to per_page: 10000 (or whatever you need for your site)
    88
    993. Edit wp-includes/rest-api/endpoints/class-wp-rest-controller.php line 357, change 'maximum' => 100 to 'maximum' => 10000 (or whatever you set in step 2)