WordPress.org

Make WordPress Core

Ticket #16116: 16116.diff

File 16116.diff, 621 bytes (added by nacin, 7 years ago)
  • wp-admin/includes/meta-boxes.php

     
    199199        else
    200200                $delete_text = __('Move to Trash');
    201201        ?>
    202 <a class="submitdelete deletion" href="<?php echo get_delete_post_link($post->ID); ?>"><?php echo $delete_text; ?></a><?php
     202<a class="submitdelete deletion<?php if ( 'auto-draft' == $post->post_status ) { echo " hidden"; } ?>" href="<?php echo get_delete_post_link($post->ID); ?>"><?php echo $delete_text; ?></a><?php
    203203} ?>
    204204</div>
    205205