Skip to content

Commit

Permalink
Post Actions: Display a notice after moving a post into the trash
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka committed May 15, 2024
1 parent e19858b commit 60f5fa2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/edit-post/src/components/layout/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 60f5fa2

Please sign in to comment.