From 3072b17cb678abb5f8080985cb22524be8cb801b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 23 Apr 2026 06:24:05 +0000 Subject: [PATCH 1/2] Initial plan From 551581e3c86f5098469733fcbaee9a58394cc6cb Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 23 Apr 2026 06:27:55 +0000 Subject: [PATCH 2/2] Update import to await ready promise from @wordpress/core-abilities Agent-Logs-Url: https://github.com/jonathanbossenger/wp-ai-workshop-demo/sessions/38927303-a45a-484f-a1a1-b33cb1cd3d92 Co-authored-by: jonathanbossenger <180629+jonathanbossenger@users.noreply.github.com> --- WORKSHOP.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/WORKSHOP.md b/WORKSHOP.md index f6a6719..d918245 100644 --- a/WORKSHOP.md +++ b/WORKSHOP.md @@ -167,6 +167,8 @@ import { useState, useEffect, useCallback } from "@wordpress/element"; Add this import after the `DataForm` import: ```js +const { ready } = await import( /* webpackIgnore: true */ '@wordpress/core-abilities' ); +await ready; const { getAbility, executeAbility } = await import( /* webpackIgnore: true */ '@wordpress/abilities' ); ```