[wp-trac] [WordPress Trac] #57547: Remove get_default_block_editor_settings from theme JSON resolver
WordPress Trac
noreply at wordpress.org
Tue Jan 24 18:03:47 UTC 2023
#57547: Remove get_default_block_editor_settings from theme JSON resolver
-------------------------+--------------------
Reporter: Mamaduka | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 6.2
Component: Themes | Version:
Severity: normal | Keywords:
Focuses: |
-------------------------+--------------------
Context:
The issue, is that the function get_default_block_editor_settings is
called. This
function returns an array of data, including lots of information needed
for the
editor. But in this context, json resolved is getting lots of data is
that is never
used. As this method is call 200-500 times per page load, it results in
all these
calls to get_option, is_rtl and get_allowed_mime_types, data is never
used. This
functions have serious overhead, as all of them have filters and some
even database
queries attached to them. As this function is called on the front end,
this results
in 11-15% of extra page load.
See https://github.com/WordPress/gutenberg/pull/46112
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57547>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list