Make WordPress Core


Ignore:
Timestamp:
03/31/2010 08:13:04 PM (15 years ago)
Author:
markjaquith
Message:

Deletion link should always show

File:
1 edited

Legend:

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

    r13855 r13905  
    196196if ( current_user_can( "delete_post", $post->ID ) ) {
    197197    if ( !EMPTY_TRASH_DAYS ) {
    198         $delete_url = wp_nonce_url( add_query_arg( array('action' => 'delete', 'post' => $post->ID) ), "delete-${post_type}_{$post->ID}" );
     198        $delete_url = wp_nonce_url( add_query_arg( array('action' => 'delete', 'post' => $post->ID), admin_url( 'post.php' ) ), "delete-${post_type}_{$post->ID}" );
    199199        $delete_text = __('Delete Permanently');
    200200    } else {
    201         $delete_url = wp_nonce_url( add_query_arg( array('action' => 'trash', 'post' => $post->ID) ), "trash-${post_type}_{$post->ID}" );
     201        $delete_url = wp_nonce_url( add_query_arg( array('action' => 'trash', 'post' => $post->ID), admin_url( 'post.php' ) ), "trash-${post_type}_{$post->ID}" );
    202202        $delete_text = __('Move to Trash');
    203203    } ?>
    204 <a class="submitdelete deletion<?php if ( 'edit' != $action ) { echo " hidden"; } ?>" href="<?php echo $delete_url; ?>"><?php echo $delete_text; ?></a><?php
     204<a class="submitdelete deletion" href="<?php echo $delete_url; ?>"><?php echo $delete_text; ?></a><?php
    205205} ?>
    206206</div>
Note: See TracChangeset for help on using the changeset viewer.