Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Jan 22, 2024
1 parent 80e2505 commit 2c99c0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/navigation-link/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ function block_core_navigation_link_unregister_variation( $name ) {
// Search for the variation and remove it from the array.
foreach ( $variations as $i => $variation ) {
if ( $variation['name'] === $name ) {
unset( $variations );
unset( $variations[ $i ] );
break;
}
}
Expand Down

0 comments on commit 2c99c0d

Please sign in to comment.