Index: wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/list-table/class-plugin-posts.php
===================================================================
--- wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/list-table/class-plugin-posts.php (revision 5693)
+++ wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/list-table/class-plugin-posts.php (working copy)
@@ -81,14 +81,6 @@
$actions['plugin_reject'] = __( 'Reject', 'wporg-plugins' );
}
- if ( current_user_can( $post_type_obj->cap->delete_posts ) ) {
- if ( $this->is_trash || ! EMPTY_TRASH_DAYS ) {
- $actions['delete'] = __( 'Delete Permanently', 'wporg-plugins' );
- } else {
- $actions['trash'] = __( 'Move to Trash', 'wporg-plugins' );
- }
- }
-
return $actions;
}
@@ -216,35 +208,6 @@
}
}
- if ( current_user_can( 'delete_post', $post->ID ) ) {
- if ( 'trash' === $post->post_status ) {
- $actions['untrash'] = sprintf(
- '%s',
- wp_nonce_url( admin_url( sprintf( $post_type_object->_edit_link . '&action=untrash', $post->ID ) ), 'untrash-post_' . $post->ID ),
- /* translators: %s: post title */
- esc_attr( sprintf( __( 'Restore “%s” from the Trash', 'wporg-plugins' ), $title ) ),
- __( 'Restore', 'wporg-plugins' )
- );
- } elseif ( EMPTY_TRASH_DAYS ) {
- $actions['trash'] = sprintf(
- '%s',
- get_delete_post_link( $post->ID ),
- /* translators: %s: post title */
- esc_attr( sprintf( __( 'Move “%s” to the Trash', 'wporg-plugins' ), $title ) ),
- _x( 'Trash', 'verb', 'wporg-plugins' )
- );
- }
- if ( 'trash' === $post->post_status || ! EMPTY_TRASH_DAYS ) {
- $actions['delete'] = sprintf(
- '%s',
- get_delete_post_link( $post->ID, '', true ),
- /* translators: %s: post title */
- esc_attr( sprintf( __( 'Delete “%s” permanently', 'wporg-plugins' ), $title ) ),
- __( 'Delete Permanently', 'wporg-plugins' )
- );
- }
- }
-
if ( is_post_type_viewable( $post_type_object ) && 'publish' === $post->post_status ) {
$actions['view'] = sprintf(
'%s',