Skip to content

Commit

Permalink
WPCS
Browse files Browse the repository at this point in the history
  • Loading branch information
ockham authored and gziolo committed Feb 14, 2025
1 parent 4615325 commit 495e14a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/e2e-tests/plugins/block-hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ function gutenberg_test_insert_hooked_blocks( $hooked_blocks, $position, $anchor
}

if ( 'core/navigation' === $anchor_block && 'first_child' === $position ) {
$hooked_blocks[] = 'core/home-link';
$hooked_blocks[] = 'core/home-link';
}

if ( 'core/navigation-link' === $anchor_block && 'after' === $position ) {
$hooked_blocks[] = 'core/page-list';
$hooked_blocks[] = 'core/page-list';
}

return $hooked_blocks;
Expand Down Expand Up @@ -62,12 +62,12 @@ function gutenberg_register_wp_ignored_hooked_blocks_meta() {
'post',
'_wp_ignored_hooked_blocks',
array(
'show_in_rest' => true,
'single' => true,
'type' => 'string',
'auth_callback' => function() {
'show_in_rest' => true,
'single' => true,
'type' => 'string',
'auth_callback' => function () {
return current_user_can( 'edit_posts' );
}
},
)
);
}
Expand Down

0 comments on commit 495e14a

Please sign in to comment.