Ticket #11673: 11673.2.against-trunk.diff
File 11673.2.against-trunk.diff, 1.9 KB (added by , 15 years ago) |
---|
-
wp-admin/edit-attachment-rows.php
97 97 elseif ( EMPTY_TRASH_DAYS && MEDIA_TRASH ) 98 98 $actions['trash'] = "<a class='submitdelete' href='" . wp_nonce_url("post.php?action=trash&post=$post->ID", 'trash-post_' . $post->ID) . "'>" . __('Trash') . "</a>"; 99 99 if ( $is_trash || !EMPTY_TRASH_DAYS || !MEDIA_TRASH ) { 100 $delete_ays = ( !$is_trash && !MEDIA_TRASH) ? " onclick='return showNotice.warn();'" : '';100 $delete_ays = ( !$is_trash && ( !MEDIA_TRASH || !EMPTY_TRASH_DAYS ) ) ? " onclick='return showNotice.warn();'" : ''; 101 101 $actions['delete'] = "<a class='submitdelete'$delete_ays href='" . wp_nonce_url("post.php?action=delete&post=$post->ID", 'delete-post_' . $post->ID) . "'>" . __('Delete Permanently') . "</a>"; 102 102 } 103 103 } -
wp-admin/upload.php
395 395 if ( EMPTY_TRASH_DAYS && MEDIA_TRASH ) { 396 396 $actions['trash'] = "<a class='submitdelete' href='" . wp_nonce_url("post.php?action=trash&post=$post->ID", 'trash-post_' . $post->ID) . "'>" . __('Trash') . "</a>"; 397 397 } else { 398 $delete_ays = !MEDIA_TRASH? " onclick='return showNotice.warn();'" : '';398 $delete_ays = ( !MEDIA_TRASH || !EMPTY_TRASH_DAYS ) ? " onclick='return showNotice.warn();'" : ''; 399 399 $actions['delete'] = "<a class='submitdelete'$delete_ays href='" . wp_nonce_url("post.php?action=delete&post=$post->ID", 'delete-post_' . $post->ID) . "'>" . __('Delete Permanently') . "</a>"; 400 400 } 401 401 $actions['view'] = '<a href="' . get_permalink($post->ID) . '" title="' . esc_attr(sprintf(__('View “%s”'), $title)) . '" rel="permalink">' . __('View') . '</a>';