Merged in feature/81-dev-dev01 (pull request #5)
auto-patch 81-dev-dev01-2023-12-05T22_45_26 * auto-patch 81-dev-dev01-2023-12-05T22_45_26
This commit is contained in:
@@ -297,7 +297,7 @@ class WP_Media_List_Table extends WP_List_Table {
|
||||
<?php
|
||||
$this->extra_tablenav( 'bar' );
|
||||
|
||||
/** This filter is documented in wp-admin/inclues/class-wp-list-table.php */
|
||||
/** This filter is documented in wp-admin/includes/class-wp-list-table.php */
|
||||
$views = apply_filters( "views_{$this->screen->id}", array() );
|
||||
|
||||
// Back compat for pre-4.0 view links.
|
||||
@@ -419,7 +419,8 @@ class WP_Media_List_Table extends WP_List_Table {
|
||||
|
||||
if ( current_user_can( 'edit_post', $post->ID ) ) {
|
||||
?>
|
||||
<label class="label-covers-full-cell" for="cb-select-<?php echo $post->ID; ?>">
|
||||
<input type="checkbox" name="media[]" id="cb-select-<?php echo $post->ID; ?>" value="<?php echo $post->ID; ?>" />
|
||||
<label for="cb-select-<?php echo $post->ID; ?>">
|
||||
<span class="screen-reader-text">
|
||||
<?php
|
||||
/* translators: Hidden accessibility text. %s: Attachment title. */
|
||||
@@ -427,7 +428,6 @@ class WP_Media_List_Table extends WP_List_Table {
|
||||
?>
|
||||
</span>
|
||||
</label>
|
||||
<input type="checkbox" name="media[]" id="cb-select-<?php echo $post->ID; ?>" value="<?php echo $post->ID; ?>" />
|
||||
<?php
|
||||
}
|
||||
}
|
||||
@@ -880,11 +880,11 @@ class WP_Media_List_Table extends WP_List_Table {
|
||||
return '';
|
||||
}
|
||||
|
||||
// Restores the more descriptive, specific name for use within this method.
|
||||
$post = $item;
|
||||
|
||||
$att_title = _draft_or_post_title();
|
||||
$actions = $this->_get_row_actions(
|
||||
$item, // WP_Post object for an attachment.
|
||||
$att_title
|
||||
);
|
||||
$actions = $this->_get_row_actions( $post, $att_title );
|
||||
|
||||
return $this->row_actions( $actions );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user