From 07b4aac7861b6769d029a59285e7157b290e5268 Mon Sep 17 00:00:00 2001 From: ramon Date: Tue, 17 Oct 2023 14:28:09 +1100 Subject: [PATCH] npm run docs:build --- packages/block-library/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/block-library/README.md b/packages/block-library/README.md index a47e055a7b2567..25c5f9b52c71a4 100644 --- a/packages/block-library/README.md +++ b/packages/block-library/README.md @@ -146,7 +146,7 @@ There are times, however, when blocks may need to use Gutenberg functions even w In such cases, you can use the corresponding Core `wp_` function in the block PHP code, and add its name to [a list of prefixed functions in the Webpack configuration file](https://github.com/WordPress/gutenberg/blob/trunk/tools/webpack/blocks.js#L30). -At build time, Webpack will search for `wp_` functions in that list and replace them with their `gutenberg_` equivalents. This process ensures that the plugin calls the `gutenberg_` functions, but the block will still call the Core `wp_` function when updates are back ported. +At build time, Webpack will search for `wp_` functions in that list and replace them with their `gutenberg_` equivalents. This process ensures that the plugin calls the `gutenberg_` functions, but the block will still call the Core `wp_` function when updates are back ported. Webpack assumes that, prefixes aside, the functions' names are identical: `wp_get_something_useful()` will be replaced with `gutenberg_get_something_useful()`.