- Timestamp:
- 09/07/2021 07:23:00 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-media-list-table.php
r51735 r51737 828 828 * 829 829 * @since 4.3.0 830 * 831 * @param WP_Post $post Attachment being acted upon. 830 * @since 5.9.0 Renamed `$post` to `$item` to match parent class for PHP 8 named parameter support. 831 * 832 * @param WP_Post $item Attachment being acted upon. 832 833 * @param string $column_name Current column name. 833 834 * @param string $primary Primary column name. … … 835 836 * if the current column is not the primary column. 836 837 */ 837 protected function handle_row_actions( $ post, $column_name, $primary ) {838 protected function handle_row_actions( $item, $column_name, $primary ) { 838 839 if ( $primary !== $column_name ) { 839 840 return ''; … … 841 842 842 843 $att_title = _draft_or_post_title(); 843 844 return $this->row_actions( $this->_get_row_actions( $post, $att_title ) ); 844 $actions = $this->_get_row_actions( 845 $item, // WP_Post object for an attachment. 846 $att_title 847 ); 848 849 return $this->row_actions( $actions ); 845 850 } 846 851 }
Note: See TracChangeset
for help on using the changeset viewer.