Ticket #21253: 21253.patch
| File 21253.patch, 1.8 KB (added by , 14 years ago) |
|---|
-
wp-admin/includes/class-wp-posts-list-table.php
542 542 if ( 'trash' == $post->post_status ) 543 543 $actions['untrash'] = "<a title='" . esc_attr( __( 'Restore this item from the Trash' ) ) . "' href='" . wp_nonce_url( admin_url( sprintf( $post_type_object->_edit_link . '&action=untrash', $post->ID ) ), 'untrash-' . $post->post_type . '_' . $post->ID ) . "'>" . __( 'Restore' ) . "</a>"; 544 544 elseif ( EMPTY_TRASH_DAYS ) 545 $actions['trash'] = "<a class='submitdelete' title='" . esc_attr( __( 'Move this item to the Trash' ) ) . "' href='" . get_delete_post_link($post->ID ) . "'>" . __( 'Trash' ) . "</a>";545 $actions['trash'] = "<a class='submitdelete' title='" . esc_attr( __( 'Move this item to the Trash' ) ) . "' href='" . wp_nonce_url( admin_url( sprintf( $post_type_object->_edit_link .'&action=trash', $post->ID ) ), 'trash-post_' . $post->ID ) . "'>" . __( 'Trash' ) . "</a>"; 546 546 if ( 'trash' == $post->post_status || !EMPTY_TRASH_DAYS ) 547 $actions['delete'] = "<a class='submitdelete' title='" . esc_attr( __( 'Delete this item permanently' ) ) . "' href='" . get_delete_post_link( $post->ID, '', true) . "'>" . __( 'Delete Permanently' ) . "</a>";547 $actions['delete'] = "<a class='submitdelete' title='" . esc_attr( __( 'Delete this item permanently' ) ) . "' href='" . wp_nonce_url( admin_url( sprintf( $post_type_object->_edit_link . '&action=delete', $post->ID ) ), 'delete-post_' . $post->ID ) . "'>" . __( 'Delete Permanently' ) . "</a>"; 548 548 } 549 549 if ( $post_type_object->public ) { 550 550 if ( in_array( $post->post_status, array( 'pending', 'draft', 'future' ) ) ) {
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)