From eabc67afacc24f1ee4456bcf0977b277bea72473 Mon Sep 17 00:00:00 2001 From: Corey Salzano <938411+csalzano@users.noreply.github.com> Date: Thu, 12 Mar 2026 15:06:47 -0400 Subject: [PATCH] Fix ReferenceError: sprintf is not defined in superlist-item edit sprintf was used in edit.js but never imported from @wordpress/i18n. WordPress no longer provides sprintf as a global, causing the block to crash with "This block has encountered an error" in the editor. --- src/superlist-item/edit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/superlist-item/edit.js b/src/superlist-item/edit.js index 3a15f37..a67738e 100644 --- a/src/superlist-item/edit.js +++ b/src/superlist-item/edit.js @@ -3,7 +3,7 @@ * * @see https://developer.wordpress.org/block-editor/packages/packages-i18n/ */ -import { __ } from "@wordpress/i18n"; +import { __, sprintf } from "@wordpress/i18n"; /** * React hook that is used to mark the block wrapper element.