Skip to content

Commit

Permalink
fix: force new slug when title is copied from hero block
Browse files Browse the repository at this point in the history
  • Loading branch information
Teemu Suoranta committed Jan 19, 2022
1 parent 44ace42 commit e8fbafc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/hero/setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ function x_get_post_types_with_hero() {
wp_update_post([
'ID' => $post_id,
'post_title' => $block_title,
'post_name' => '', // force new slug
]);
}
// copy post title to block title if it is not set
Expand Down

0 comments on commit e8fbafc

Please sign in to comment.