[wp-trac] [WordPress Trac] #59453: Replace property_exists call in block api with instanceof
WordPress Trac
noreply at wordpress.org
Tue Sep 26 12:37:05 UTC 2023
#59453: Replace property_exists call in block api with instanceof
------------------------------+----------------------------
Reporter: spacedmonkey | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Editor | Version: 5.8
Severity: normal | Keywords:
Focuses: coding-standards |
------------------------------+----------------------------
Remove calls this in block functions
{{{#!php
property_exists( $block_type, 'supports' )
}}}
with
{{{#!php
$block_type instanceof WP_Block_Type
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59453>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list