[wp-trac] [WordPress Trac] #56815: Massive (potential) performance issues within get_default_block_editor_settings

WordPress Trac noreply at wordpress.org
Tue Nov 8 12:34:10 UTC 2022


#56815: Massive (potential) performance issues within
get_default_block_editor_settings
-----------------------------------+-------------------------------------
 Reporter:  janthiel               |       Owner:  (none)
     Type:  defect (bug)           |      Status:  new
 Priority:  normal                 |   Milestone:  6.1.1
Component:  Editor                 |     Version:  6.0
 Severity:  major                  |  Resolution:
 Keywords:  2nd-opinion has-patch  |     Focuses:  multisite, performance
-----------------------------------+-------------------------------------

Comment (by spacedmonkey):

 Another workaround is the following.

 {{{#!php
 add_filter('pre_site_option_upload_space_check_disabled',
 '__return_true');
 $max_upload_size = wp_max_upload_size();
 remove_filter('pre_site_option_upload_space_check_disabled',
 '__return_true');
 }}}

 As a workaround, is will hotwire `upload_size_limit_filter` function (
 filter ) to not run the space check.

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


More information about the wp-trac mailing list