From cdd520bbeb14d6defab70a59ab4bd0ef054b55b0 Mon Sep 17 00:00:00 2001 From: Kelly Dwan Date: Fri, 14 Dec 2018 09:57:11 -0500 Subject: [PATCH] Fix incorrectly escaped HTML in build notice (https://github.com/woocommerce/woocommerce-blocks/pull/235) --- .../woocommerce-gutenberg-products-block.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/plugins/woocommerce-blocks/woocommerce-gutenberg-products-block.php b/plugins/woocommerce-blocks/woocommerce-gutenberg-products-block.php index 29e1868181b..31e079d95c9 100644 --- a/plugins/woocommerce-blocks/woocommerce-gutenberg-products-block.php +++ b/plugins/woocommerce-blocks/woocommerce-gutenberg-products-block.php @@ -43,7 +43,13 @@ add_action( 'woocommerce_loaded', 'wgpb_initialize' ); */ function wgpb_plugins_notice() { echo '

'; - esc_html_e( 'WooCommerce Product Blocks development mode requires files to be built. From the plugin directory, run npm install to install dependencies, npm run build to build the files or npm start to build the files and watch for changes.', 'woo-gutenberg-products-block' ); + printf( + /* Translators: %1$s is the install command, %2$s is the build command, %3$s is the watch command. */ + esc_html__( 'WooCommerce Blocks development mode requires files to be built. From the plugin directory, run %1$s to install dependencies, %2$s to build the files or %3$s to build the files and watch for changes.', 'woo-gutenberg-products-block' ), + 'npm install', + 'npm run build', + 'npm start' + ); echo '

'; }