Skip to content

Commit

Permalink
Merge pull request #38 from tombroucke/master
Browse files Browse the repository at this point in the history
Make sure anchor is always et
  • Loading branch information
MWDelaney committed Mar 5, 2020
2 parents 7e8b213 + 9507ddb commit cb48133
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sage-acf-gutenberg-blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ function sage_blocks_callback($block, $content = '', $is_preview = false, $post_
$block['is_preview'] = $is_preview;
$block['content'] = $content;
$block['slug'] = $slug;
$block['anchor'] = isset($block['anchor']) ? $block['anchor'] : '';
// Send classes as array to filter for easy manipulation.
$block['classes'] = [
$slug,
Expand Down

0 comments on commit cb48133

Please sign in to comment.