Skip to content

Commit

Permalink
Remove wp_ prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
ockham committed Sep 5, 2022
1 parent 752e981 commit e21975b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tools/webpack/blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,11 @@ module.exports = {
// block will still call the core function when updates are back ported.
content = content.replace(
new RegExp( prefixFunctions.join( '|' ), 'g' ),
( match ) => `${ prefix }${ match }`
( match ) =>
`${ prefix }${ match.replace(
/^wp_/,
''
) }`
);

// Within content, search for any function definitions. For
Expand Down

0 comments on commit e21975b

Please sign in to comment.