Changeset 21504 for trunk/wp-admin/includes/class-wp-media-list-table.php
- Timestamp:
- 08/14/2012 06:39:15 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-media-list-table.php
r21323 r21504 361 361 if ( current_user_can( 'delete_post', $post->ID ) ) 362 362 if ( EMPTY_TRASH_DAYS && MEDIA_TRASH ) { 363 $actions['trash'] = "<a class='submitdelete' href='" . wp_nonce_url( "post.php?action=trash&post=$post->ID", 'trash- attachment_' . $post->ID ) . "'>" . __( 'Trash' ) . "</a>";363 $actions['trash'] = "<a class='submitdelete' href='" . wp_nonce_url( "post.php?action=trash&post=$post->ID", 'trash-post_' . $post->ID ) . "'>" . __( 'Trash' ) . "</a>"; 364 364 } else { 365 365 $delete_ays = !MEDIA_TRASH ? " onclick='return showNotice.warn();'" : ''; 366 $actions['delete'] = "<a class='submitdelete'$delete_ays href='" . wp_nonce_url( "post.php?action=delete&post=$post->ID", 'delete- attachment_' . $post->ID ) . "'>" . __( 'Delete Permanently' ) . "</a>";366 $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>"; 367 367 } 368 368 $actions['view'] = '<a href="' . get_permalink( $post->ID ) . '" title="' . esc_attr( sprintf( __( 'View “%s”' ), $att_title ) ) . '" rel="permalink">' . __( 'View' ) . '</a>'; … … 375 375 if ( current_user_can( 'delete_post', $post->ID ) ) { 376 376 if ( $this->is_trash ) 377 $actions['untrash'] = "<a class='submitdelete' href='" . wp_nonce_url( "post.php?action=untrash&post=$post->ID", 'untrash- attachment_' . $post->ID ) . "'>" . __( 'Restore' ) . "</a>";377 $actions['untrash'] = "<a class='submitdelete' href='" . wp_nonce_url( "post.php?action=untrash&post=$post->ID", 'untrash-post_' . $post->ID ) . "'>" . __( 'Restore' ) . "</a>"; 378 378 elseif ( EMPTY_TRASH_DAYS && MEDIA_TRASH ) 379 $actions['trash'] = "<a class='submitdelete' href='" . wp_nonce_url( "post.php?action=trash&post=$post->ID", 'trash- attachment_' . $post->ID ) . "'>" . __( 'Trash' ) . "</a>";379 $actions['trash'] = "<a class='submitdelete' href='" . wp_nonce_url( "post.php?action=trash&post=$post->ID", 'trash-post_' . $post->ID ) . "'>" . __( 'Trash' ) . "</a>"; 380 380 if ( $this->is_trash || !EMPTY_TRASH_DAYS || !MEDIA_TRASH ) { 381 381 $delete_ays = ( !$this->is_trash && !MEDIA_TRASH ) ? " onclick='return showNotice.warn();'" : ''; 382 $actions['delete'] = "<a class='submitdelete'$delete_ays href='" . wp_nonce_url( "post.php?action=delete&post=$post->ID", 'delete- attachment_' . $post->ID ) . "'>" . __( 'Delete Permanently' ) . "</a>";382 $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>"; 383 383 } 384 384 }
Note: See TracChangeset
for help on using the changeset viewer.