WordPress.org

Make WordPress Core

Opened 3 years ago

Last modified 4 months ago

#20288 new enhancement

Missing bottom border for bulk-actions checkbox th in wp-posts-list-table if current user can't "edit_post". — at Initial Version

Reported by: szaqal21 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 3.3.1
Component: Posts, Post Types Keywords: has-patch reporter-feedback close
Focuses: ui, administration Cc:

Description

If current user can't "edit_post" the bulk-actions checkbox isn't present but also the bottom border for th in wp-posts-list-table.

I think it can be fixed by modifying line 495 in class-wp-posts-list-table.php like so:

<th scope="row" class="check-column"><?php if ( $can_edit_post ) { ?><input type="checkbox" name="post[]" value="<?php the_ID(); ?>" /><?php } else { ?> &nbsp; <?php } ?></th>

Change History (0)

Note: See TracTickets for help on using tickets.