Make WordPress Core


Ignore:
Timestamp:
08/19/2009 08:35:24 AM (17 years ago)
Author:
azaozz
Message:

"Trash" updates, props caesarsgrunt, see #4529

File:
1 edited

Legend:

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

    r11749 r11841  
    14401440
    14411441                        $actions = array();
    1442                         if ( 'trash' == $post->post_status && current_user_can('delete_post', $post->ID) ) {
    1443                                 $actions['untrash'] = "<a title='" . esc_attr(__('Remove this post from the Trash')) . "' href='" . wp_nonce_url("post.php?action=untrash&amp;post=$post->ID", 'untrash-post_' . $post->ID) . "'>" . __('Restore') . "</a>";
    1444                                 $actions['delete'] = "<a class='submitdelete' title='" . esc_attr(__('Delete this post permanently')) . "' href='" . wp_nonce_url("post.php?action=delete&amp;post=$post->ID", 'delete-post_' . $post->ID) . "'>" . __('Delete Permanently') . "</a>";
     1442                        if ('trash' == $post->post_status) {
     1443                                if ( current_user_can('delete_post', $post->ID) ) {
     1444                                        $actions['untrash'] = "<a title='" . esc_attr(__('Restore this post from the Trash')) . "' href='" . wp_nonce_url("post.php?action=untrash&amp;post=$post->ID", 'untrash-post_' . $post->ID) . "'>" . __('Restore') . "</a>";
     1445                                        $actions['delete'] = "<a class='submitdelete' title='" . esc_attr(__('Delete this post permanently')) . "' href='" . wp_nonce_url("post.php?action=delete&amp;post=$post->ID", 'delete-post_' . $post->ID) . "'>" . __('Delete Permanently') . "</a>";
     1446                                }
    14451447                        } else {
    14461448                                if ( current_user_can('edit_post', $post->ID) ) {
Note: See TracChangeset for help on using the changeset viewer.