WordPress.org

Make WordPress Core

Ticket #37064: class-wp-posts-list-table.php.patch

File class-wp-posts-list-table.php.patch, 643 bytes (added by shamim51, 3 years ago)
  • class-wp-posts-list-table.php

     
    799799         * @param WP_Post $post The current WP_Post object.
    800800         */
    801801        public function column_cb( $post ) {
    802                 if ( current_user_can( 'edit_post', $post->ID ) ): ?>
     802                if ( current_user_can( 'edit_post', $post->ID ) || current_user_can( 'delete_post', $post->ID ) ): ?>
    803803                        <label class="screen-reader-text" for="cb-select-<?php the_ID(); ?>"><?php
    804804                                printf( __( 'Select %s' ), _draft_or_post_title() );
    805805                        ?></label>