[wp-trac] [WordPress Trac] #57893: Remove the redundancy of adding row actions in `class-wp-media-list-table.php`

WordPress Trac noreply at wordpress.org
Thu Mar 9 08:39:18 UTC 2023


#57893: Remove the redundancy of adding row actions in `class-wp-media-list-
table.php`
--------------------------+-----------------------------
 Reporter:  kebbet        |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Media         |    Version:  3.1
 Severity:  normal        |   Keywords:  needs-patch
  Focuses:  ui            |
--------------------------+-----------------------------
 This is a ticket related to #57890 which dealt with issues of row actions
 not displayed while a user has filtered the media library list.

 The reason is `_get_row_actions` which duplicates code for multiple row
 actions in the `if ( $this->detached )` and `else` logic.

 The goal of this ticket is to remove the redundancy in that function to
 avoid furter issues like the ones in #57890.

 Props to @pbiron for suggesting creation of this ticket.

 Version set to `3.1`, introduced in [16229].

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57893>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list