WordPress/wp-includes/block-supports
spacedmonkey e74a3bfdb0 Editor: Replace property_exists calls in block related functions with instanceof
Replace calls to `property_exists` with `instanceof WP_Block_Type` in block related functions. This change not only improves type safety but also enhances performance.

Follow on from [56678] and [56677].

Props gziolo, aristath, aaronrobertshaw, spacedmonkey.
Fixes #59453
Built from https://develop.svn.wordpress.org/trunk@56742


git-svn-id: http://core.svn.wordpress.org/trunk@56254 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-09-29 10:20:30 +00:00
..
align.php Editor: Simplify usage of block_has_support() function by supporting a string. 2023-08-10 16:48:19 +00:00
background.php Editor: fix undefined array key warning. 2023-09-27 05:12:22 +00:00
border.php Editor: Replace property_exists calls in block related functions with instanceof 2023-09-29 10:20:30 +00:00
colors.php Editor: Replace property_exists calls in block related functions with instanceof 2023-09-29 10:20:30 +00:00
custom-classname.php Editor: Simplify usage of block_has_support() function by supporting a string. 2023-08-10 16:48:19 +00:00
dimensions.php Editor: Reduce the use of the _wp_array_get() function to improve performance. 2023-09-26 13:47:20 +00:00
duotone.php Editor: Lazily load Duotone settings only when needed. 2023-07-13 11:34:28 +00:00
elements.php Editor: Reduce the use of the _wp_array_get() function to improve performance. 2023-09-26 13:47:20 +00:00
generated-classname.php Editor: Simplify usage of block_has_support() function by supporting a string. 2023-08-10 16:48:19 +00:00
layout.php Editor: Reduce the use of the _wp_array_get() function to improve performance. 2023-09-26 13:47:20 +00:00
position.php Editor: Reduce the use of the _wp_array_get() function to improve performance. 2023-09-26 13:47:20 +00:00
settings.php Editor: Reduce the use of the _wp_array_get() function to improve performance. 2023-09-26 13:47:20 +00:00
shadow.php Editor: Simplify usage of block_has_support() function by supporting a string. 2023-08-10 16:48:19 +00:00
spacing.php Editor: Reduce the use of the _wp_array_get() function to improve performance. 2023-09-26 13:47:20 +00:00
typography.php Editor: Replace property_exists calls in block related functions with instanceof 2023-09-29 10:20:30 +00:00
utils.php Docs: Miscellaneous docblock corrections and improvements. 2023-08-18 17:29:20 +00:00