Make WordPress Core


Ignore:
Timestamp:
09/15/2008 07:28:26 PM (17 years ago)
Author:
ryan
Message:

Implement attachmenet delete link. Use get_edit_post_link(). see #7552

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r8894 r8895  
    763763
    764764            $actions = array();
    765             $actions['edit'] = '<a href="post.php?action=edit&amp;post=' . $post->ID . '">' . __('Edit') . '</a>';
     765            $actions['edit'] = '<a href="' . get_edit_post_link($post->ID, true) . '">' . __('Edit') . '</a>';
    766766            $actions['inline'] = '<a href="#" class="editinline">' . __('Quick Edit') . '</a>';
    767767            $actions['delete'] = "<a class='submitdelete' href='" . wp_nonce_url("post.php?action=delete&amp;post=$post->ID", 'delete-post_' . $post->ID) . "' onclick=\"if ( confirm('" . js_escape(sprintf( ('draft' == $post->post_status) ? __("You are about to delete this draft '%s'\n  'Cancel' to stop, 'OK' to delete.") : __("You are about to delete this post '%s'\n  'Cancel' to stop, 'OK' to delete."), $post->post_title )) . "') ) { return true;}return false;\">" . __('Delete') . "</a>";
Note: See TracChangeset for help on using the changeset viewer.