Ticket #9674: template.php.diff
File template.php.diff, 1.8 KB (added by , 15 years ago) |
---|
-
template.php
1361 1361 } 1362 1362 if ( current_user_can($post_type_object->delete_cap, $post->ID) ) { 1363 1363 if ( 'trash' == $post->post_status ) 1364 $actions['untrash'] = "<a title='" . esc_attr(__('Restore this post from the Trash')) . "' href='" . wp_nonce_url( "post.php?action=untrash&post=$post->ID", 'untrash-post_' . $post->ID) . "'>" . __('Restore') . "</a>";1364 $actions['untrash'] = "<a title='" . esc_attr(__('Restore this post from the Trash')) . "' href='" . wp_nonce_url( admin_url( sprintf($post_type_object->_edit_link . '&action=untrash', $post->ID) ), 'untrash-' . $post->post_type . '_' . $post->ID ) . "'>" . __('Restore') . "</a>"; 1365 1365 elseif ( EMPTY_TRASH_DAYS ) 1366 1366 $actions['trash'] = "<a class='submitdelete' title='" . esc_attr(__('Move this post to the Trash')) . "' href='" . get_delete_post_link($post->ID) . "'>" . __('Trash') . "</a>"; 1367 1367 if ( 'trash' == $post->post_status || !EMPTY_TRASH_DAYS ) 1368 $actions['delete'] = "<a class='submitdelete' title='" . esc_attr(__('Delete this post permanently')) . "' href='" . wp_nonce_url( "post.php?action=delete&post=$post->ID", 'delete-post_' . $post->ID) . "'>" . __('Delete Permanently') . "</a>";1368 $actions['delete'] = "<a class='submitdelete' title='" . esc_attr(__('Delete this post permanently')) . "' href='" . wp_nonce_url( admin_url( sprintf($post_type_object->_edit_link . '&action=delete', $post->ID) ), 'delete-' . $post->post_type . '_' . $post->ID ) . "'>" . __('Delete Permanently') . "</a>"; 1369 1369 } 1370 1370 if ( in_array($post->post_status, array('pending', 'draft')) ) { 1371 1371 if ( current_user_can($post_type_object->edit_cap, $post->ID) )