Changeset 49950
- Timestamp:
- 01/08/2021 05:16:28 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-posts-list-table.php
r49238 r49950 926 926 */ 927 927 public function column_cb( $post ) { 928 if ( current_user_can( 'edit_post', $post->ID ) ) : 928 $show = current_user_can( 'edit_post', $post->ID ); 929 930 /** 931 * Filters whether to show the bulk edit checkbox for a post in its list table. 932 * 933 * By default the checkbox is only shown if the current user can edit the post. 934 * 935 * @since 5.7.0 936 * 937 * @param bool $show Whether to show the checkbox. 938 * @param WP_Post $post The current WP_Post object. 939 */ 940 if ( apply_filters( 'wp_list_table_show_post_checkbox', $show, $post ) ) : 929 941 ?> 930 942 <label class="screen-reader-text" for="cb-select-<?php the_ID(); ?>">
Note: See TracChangeset
for help on using the changeset viewer.