From 75a6990004022250db93e0e19c95f9b2b089fc8c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 28 Nov 2025 20:23:15 +0000 Subject: [PATCH 1/2] Initial plan From e8a1504e3e5ecc11c8884b70f6506e2824853eab Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 28 Nov 2025 20:34:01 +0000 Subject: [PATCH 2/2] Fix APIFetchOptions type parameter for @wordpress/api-fetch 7.36.0 compatibility --- src/content-helper/common/providers/base-provider.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/content-helper/common/providers/base-provider.tsx b/src/content-helper/common/providers/base-provider.tsx index 85cf93b48c..534ef86de4 100644 --- a/src/content-helper/common/providers/base-provider.tsx +++ b/src/content-helper/common/providers/base-provider.tsx @@ -138,17 +138,17 @@ export abstract class BaseProvider { * * @since 3.15.0 * - * @param {APIFetchOptions} options The options to pass to apiFetch. - * @param {string?} id The (optional) ID of the request. + * @param {APIFetchOptions} options The options to pass to apiFetch. + * @param {string?} id The (optional) ID of the request. * * @return {Promise>} The fetched data. */ - protected async fetch( options: APIFetchOptions, id?: string ): Promise { + protected async fetch( options: APIFetchOptions, id?: string ): Promise { const { abortController, abortId } = this.getOrCreateController( id ); options.signal = abortController.signal; try { - const response = await apiFetch>( options as APIFetchOptions ); + const response = await apiFetch>( options ); // Validate API side errors. if ( response.error ) {