From 02e887d73f4fca9b6b31091fce0e5c06c61ba8a7 Mon Sep 17 00:00:00 2001 From: George Mamadashvili Date: Wed, 15 May 2024 12:06:50 +0400 Subject: [PATCH] Post Actions: Display a notice after moving a post into the trash (#61670) Co-authored-by: Mamaduka Co-authored-by: youknowriad --- 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 db721b012330f..0518f5507d984 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;