Changeset 32752
- Timestamp:
- 06/13/2015 03:13:47 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-posts-list-table.php
r32749 r32752 683 683 */ 684 684 public function column_cb( $post ) { 685 $can_edit_post = current_user_can( 'edit_post', $post->ID ); 686 $title = _draft_or_post_title(); 687 ?> 688 <th scope="row" class="check-column"> 689 <?php if ( $can_edit_post ) { ?> 690 <label class="screen-reader-text" for="cb-select-<?php the_ID(); ?>"><?php printf( __( 'Select %s' ), $title ); ?></label> 685 if ( current_user_can( 'edit_post', $post->ID ) ): ?> 686 <label class="screen-reader-text" for="cb-select-<?php the_ID(); ?>"><?php 687 printf( __( 'Select %s' ), _draft_or_post_title() ); 688 ?></label> 691 689 <input id="cb-select-<?php the_ID(); ?>" type="checkbox" name="post[]" value="<?php the_ID(); ?>" /> 692 690 <div class="locked-indicator"></div> 693 <?php } ?> 694 </th> 695 <?php 691 <?php endif; 696 692 } 697 693 … … 981 977 982 978 if ( 'cb' === $column_name ) { 979 echo '<th scope="row" class="check-column">'; 980 983 981 $this->column_cb( $item ); 982 983 echo '</th>'; 984 984 } else { 985 985 echo "<td $attributes>";
Note: See TracChangeset
for help on using the changeset viewer.