WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/21/2010 06:53:33 AM (11 years ago)
Author:
ryan
Message:

Update trash and right now links for pages. fixes #11958

File:
1 edited

Legend:

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

    r12781 r12783  
    16061606    $hidden = get_hidden_columns(  $current_screen );
    16071607    $title = _draft_or_post_title();
     1608    $post_type = $page->post_type;
    16081609?>
    16091610<tr id="page-<?php echo $id; ?>" class="<?php echo $rowclass; ?> iedit">
     
    16701671        if ( current_user_can('delete_page', $page->ID) ) {
    16711672            if ( $post->post_status == 'trash' )
    1672                 $actions['untrash'] = "<a title='" . esc_attr(__('Remove this page from the Trash')) . "' href='" . wp_nonce_url("page.php?action=untrash&amp;post=$page->ID", 'untrash-page_' . $page->ID) . "'>" . __('Restore') . "</a>";
     1673                $actions['untrash'] = "<a title='" . esc_attr(__('Remove this page from the Trash')) . "' href='" . wp_nonce_url("post.php?post_type=$post_type&amp;action=untrash&amp;post=$page->ID", 'untrash-page_' . $page->ID) . "'>" . __('Restore') . "</a>";
    16731674            elseif ( EMPTY_TRASH_DAYS )
    16741675                $actions['trash'] = "<a class='submitdelete' title='" . esc_attr(__('Move this page to the Trash')) . "' href='" . get_delete_post_link($page->ID) . "'>" . __('Trash') . "</a>";
    16751676            if ( $post->post_status == 'trash' || !EMPTY_TRASH_DAYS )
    1676                 $actions['delete'] = "<a class='submitdelete' title='" . esc_attr(__('Delete this page permanently')) . "' href='" . wp_nonce_url("page.php?action=delete&amp;post=$page->ID", 'delete-page_' . $page->ID) . "'>" . __('Delete Permanently') . "</a>";
     1677                $actions['delete'] = "<a class='submitdelete' title='" . esc_attr(__('Delete this page permanently')) . "' href='" . wp_nonce_url("post.php?post_type=$post_type&amp;action=delete&amp;post=$page->ID", 'delete-page_' . $page->ID) . "'>" . __('Delete Permanently') . "</a>";
    16771678        }
    16781679        if ( in_array($post->post_status, array('pending', 'draft')) ) {
Note: See TracChangeset for help on using the changeset viewer.