diff --git a/source/wp-content/themes/wporg-developer-2023/src/code-hooks/block.php b/source/wp-content/themes/wporg-developer-2023/src/code-hooks/block.php index 43153c444..c02c979a8 100644 --- a/source/wp-content/themes/wporg-developer-2023/src/code-hooks/block.php +++ b/source/wp-content/themes/wporg-developer-2023/src/code-hooks/block.php @@ -37,7 +37,7 @@ function render( $attributes, $content, $block ) { if ( ! isset( $block->context['postId'] ) ) { return ''; } - return ''; + $post_id = $block->context['postId']; if ( ! post_type_has_hooks_info( get_post_type( $post_id ) ) ) { diff --git a/source/wp-content/themes/wporg-developer-2023/src/code-related/block.php b/source/wp-content/themes/wporg-developer-2023/src/code-related/block.php index c9b4a11b9..dd14cca52 100644 --- a/source/wp-content/themes/wporg-developer-2023/src/code-related/block.php +++ b/source/wp-content/themes/wporg-developer-2023/src/code-related/block.php @@ -41,8 +41,6 @@ function render( $attributes, $content, $block ) { return ''; } - return ''; - $uses = null; $used_by = null; $has_uses = false;