- Timestamp:
- 04/19/2021 11:39:54 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-media-list-table.php
r50071 r50770 649 649 while ( have_posts() ) : 650 650 the_post(); 651 651 652 if ( $this->is_trash && 'trash' !== $post->post_status 652 653 || ! $this->is_trash && 'trash' === $post->post_status … … 654 655 continue; 655 656 } 656 $post_owner = ( get_current_user_id() == $post->post_author ) ? 'self' : 'other'; 657 658 $post_owner = ( get_current_user_id() === (int) $post->post_author ) ? 'self' : 'other'; 657 659 ?> 658 660 <tr id="post-<?php echo $post->ID; ?>" class="<?php echo trim( ' author-' . $post_owner . ' status-' . $post->post_status ); ?>"> … … 692 694 ); 693 695 } 696 694 697 if ( current_user_can( 'delete_post', $post->ID ) ) { 695 698 if ( EMPTY_TRASH_DAYS && MEDIA_TRASH ) { … … 713 716 } 714 717 } 718 715 719 $actions['view'] = sprintf( 716 720 '<a href="%s" aria-label="%s" rel="bookmark">%s</a>', … … 740 744 ); 741 745 } 746 742 747 if ( current_user_can( 'delete_post', $post->ID ) ) { 743 748 if ( $this->is_trash ) { … … 758 763 ); 759 764 } 765 760 766 if ( $this->is_trash || ! EMPTY_TRASH_DAYS || ! MEDIA_TRASH ) { 761 767 $delete_ays = ( ! $this->is_trash && ! MEDIA_TRASH ) ? " onclick='return showNotice.warn();'" : ''; … … 770 776 } 771 777 } 778 772 779 if ( ! $this->is_trash ) { 773 780 $actions['view'] = sprintf(
Note: See TracChangeset
for help on using the changeset viewer.