From 639385010e0ec43062ae4c74ac549b92431617b9 Mon Sep 17 00:00:00 2001 From: Riad Benguella Date: Mon, 4 Dec 2023 09:10:52 +0100 Subject: [PATCH] Fix deprecations --- packages/edit-post/src/store/actions.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/edit-post/src/store/actions.js b/packages/edit-post/src/store/actions.js index fd1f48bbd4baa9..0380b0f7e98f33 100644 --- a/packages/edit-post/src/store/actions.js +++ b/packages/edit-post/src/store/actions.js @@ -516,9 +516,9 @@ export const setIsListViewOpened = * @deprecated */ export function setIsEditingTemplate() { - deprecated( "select( 'core/edit-post' ).setIsEditingTemplate", { + deprecated( "dispatch( 'core/edit-post' ).setIsEditingTemplate", { since: '6.5', - alternative: "select( 'core/editor').setRenderingMode", + alternative: "dispatch( 'core/editor').setRenderingMode", } ); return { type: 'NOTHING' }; }