[wp-trac] [WordPress Trac] #56637: Bug/performance: Repetitive calls to file_get_contents
WordPress Trac
noreply at wordpress.org
Fri Sep 23 09:56:30 UTC 2022
#56637: Bug/performance: Repetitive calls to file_get_contents
--------------------------+--------------------
Reporter: aristath | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.1
Component: General | Version: trunk
Severity: normal | Keywords:
Focuses: performance |
--------------------------+--------------------
While running tests with Xdebug & web grind, I identified repetitive calls
to `file_get_contents()` from the `get_default_block_editor_settings()`
function.
That function repeatedly gets the contents of the `/css/dist/block-editor
/default-editor-styles.css` without any implementation to avoid those.
This is an easy bugfix, and involves using a static variable in the
function. Details and screenshots in the PR.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56637>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list