Skip to content

Commit

Permalink
Use is_dynamic()
Browse files Browse the repository at this point in the history
  • Loading branch information
Soean committed Feb 20, 2023
1 parent 3e99d5f commit 9eff959
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/block-supports/anchor.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* @param WP_Block_Type $block_type Block Type.
*/
function gutenberg_register_anchor_support( $block_type ) {
if ( ! $block_type->render_callback ) {
if ( ! $block_type->is_dynamic() ) {
return;
}

Expand Down

0 comments on commit 9eff959

Please sign in to comment.