From fc6d49427eef77c2ea30552897837ffe17cda201 Mon Sep 17 00:00:00 2001 From: ryan 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: http://svn.automattic.com/wordpress/trunk@13359 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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) )