We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ee21bb commit bd1c57bCopy full SHA for bd1c57b
src/wp-includes/blocks.php
@@ -751,6 +751,9 @@ function get_hooked_blocks( $name ) {
751
$block_types = WP_Block_Type_Registry::get_instance()->get_all_registered();
752
$hooked_blocks = array();
753
foreach ( $block_types as $block_type ) {
754
+ if ( ! property_exists( $block_type, 'block_hooks' ) ) {
755
+ continue;
756
+ }
757
foreach ( $block_type->block_hooks as $anchor_block_type => $relative_position ) {
758
if ( $anchor_block_type === $name ) {
759
$hooked_blocks[ $block_type->name ] = $relative_position;
0 commit comments