From 03b36928329681e4633c33e2fbfe0c3fc31d8cac Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 24 Feb 2010 05:43:41 +0000 Subject: [PATCH] Fix trash/untrash/delete links for custom post types. Props jfarthing84. see #9674 git-svn-id: https://develop.svn.wordpress.org/trunk@13359 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/template.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 9f0cc32b99..1092d80096 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -1359,11 +1359,11 @@ function _post_row($a_post, $pending_comments, $mode) { } if ( current_user_can($post_type_object->delete_cap, $post->ID) ) { if ( 'trash' == $post->post_status ) - $actions['untrash'] = "ID) . "'>" . __('Restore') . ""; + $actions['untrash'] = "ID) ), 'untrash-' . $post->post_type . '_' . $post->ID ) . "'>" . __('Restore') . ""; elseif ( EMPTY_TRASH_DAYS ) $actions['trash'] = "" . __('Trash') . ""; if ( 'trash' == $post->post_status || !EMPTY_TRASH_DAYS ) - $actions['delete'] = "ID) . "'>" . __('Delete Permanently') . ""; + $actions['delete'] = "ID) ), 'delete-' . $post->post_type . '_' . $post->ID ) . "'>" . __('Delete Permanently') . ""; } if ( in_array($post->post_status, array('pending', 'draft')) ) { if ( current_user_can($post_type_object->edit_cap, $post->ID) )