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 326254d commit 62b0651Copy full SHA for 62b0651
mu-plugins/blocks/favorite-button/render.php
@@ -7,7 +7,7 @@
7
8
namespace WordPressdotorg\MU_Plugins\Favorite_Button_Block;
9
10
-$settings = get_block_settings( $block->context['postId'] );
+$settings = get_block_settings( $block->context['postId'] ?? 0 );
11
if ( ! $settings ) {
12
return '';
13
}
0 commit comments