[wp-trac] [WordPress Trac] #59441: Use instanceof in block_has_support
WordPress Trac
noreply at wordpress.org
Mon Sep 25 11:08:54 UTC 2023
#59441: Use instanceof in block_has_support
--------------------------+--------------------
Reporter: spacedmonkey | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.4
Component: Editor | Version: 5.8
Severity: normal | Keywords:
Focuses: performance |
--------------------------+--------------------
The function block_has_support can be called around 4000 times on a page
load. The `property_exists` check, can be expensive. Replaces it with
`instanceof`, is much faster.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59441>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list