From 60f5fa2b0ff4a23d6e916f7ad540af41862f05c6 Mon Sep 17 00:00:00 2001 From: George Mamadashvili Date: Wed, 15 May 2024 09:47:40 +0400 Subject: [PATCH] Post Actions: Display a notice after moving a post into the trash --- packages/edit-post/src/components/layout/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/edit-post/src/components/layout/index.js b/packages/edit-post/src/components/layout/index.js index db721b012330f8..0518f5507d9841 100644 --- a/packages/edit-post/src/components/layout/index.js +++ b/packages/edit-post/src/components/layout/index.js @@ -281,9 +281,10 @@ function Layout( { initialPost } ) { switch ( actionId ) { case 'move-to-trash': { - const postType = items[ 0 ].type; document.location.href = addQueryArgs( 'edit.php', { - post_type: postType, + trashed: 1, + post_type: items[ 0 ].type, + ids: items[ 0 ].id, } ); } break;