Skip to content

Commit

Permalink
Blocks: Fix double gutenberg_ prefix in built dynamic blocks PHP (#60288
Browse files Browse the repository at this point in the history
)

Co-authored-by: ockham <[email protected]>
Co-authored-by: Mamaduka <[email protected]>
Co-authored-by: noisysocks <[email protected]>
Co-authored-by: adamziel <[email protected]>
  • Loading branch information
5 people authored Apr 2, 2024
1 parent b68641d commit ebe7b20
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/webpack/blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@ module.exports = [
// other core prefix (e.g. "wp_").
return result.replace(
new RegExp(
functionName,
functionName +
'(?![a-zA-Z0-9_])',
'g'
),
( match ) =>
Expand Down

0 comments on commit ebe7b20

Please sign in to comment.