Changeset 11956 for trunk/wp-admin/includes/template.php
- Timestamp:
- 09/21/2009 09:33:00 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/template.php
r11954 r11956 1451 1451 } 1452 1452 if ( current_user_can('delete_post', $post->ID) ) { 1453 $actions['trash'] = "<a class='submitdelete' title='" . esc_attr(__('Move this post to the Trash')) . "' href='" . wp_nonce_url("post.php?action=trash&post=$post->ID", 'trash-post_' .$post->ID) . "'>" . __('Trash') . "</a>";1453 $actions['trash'] = "<a class='submitdelete' title='" . esc_attr(__('Move this post to the Trash')) . "' href='" . get_delete_post_link($post->ID) . "'>" . __('Trash') . "</a>"; 1454 1454 } 1455 1455 if ( in_array($post->post_status, array('pending', 'draft')) ) { … … 1671 1671 } 1672 1672 if ( current_user_can('delete_page', $page->ID) ) { 1673 $actions['trash'] = "<a class='submitdelete' title='" . esc_attr(__('Move this page to the Trash')) . "' href='" . wp_nonce_url("page.php?action=trash&post=$page->ID", 'trash-page_' .$page->ID) . "'>" . __('Trash') . "</a>";1673 $actions['trash'] = "<a class='submitdelete' title='" . esc_attr(__('Move this page to the Trash')) . "' href='" . get_delete_post_link($page->ID) . "'>" . __('Trash') . "</a>"; 1674 1674 } 1675 1675 if ( in_array($post->post_status, array('pending', 'draft')) ) {
Note: See TracChangeset
for help on using the changeset viewer.