Skip to content

Commit

Permalink
Post Actions: Display a notice after moving a post into the trash (#6…
Browse files Browse the repository at this point in the history
…1670)


Co-authored-by: Mamaduka <[email protected]>
Co-authored-by: youknowriad <[email protected]>
  • Loading branch information
3 people authored May 15, 2024
1 parent 73150a4 commit 02e887d
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 02e887d

Please sign in to comment.