diff --git a/wp-admin/includes/class-wp-media-list-table.php b/wp-admin/includes/class-wp-media-list-table.php index f81165513b..63d72bc37b 100644 --- a/wp-admin/includes/class-wp-media-list-table.php +++ b/wp-admin/includes/class-wp-media-list-table.php @@ -168,11 +168,6 @@ class WP_Media_List_Table extends WP_List_Table { function display_rows() { global $post, $id; - if ( $this->detached ) { - $this->display_orphans(); - return; - } - add_filter( 'the_title','esc_html' ); $alt = ''; @@ -239,25 +234,7 @@ foreach ( $columns as $column_name => $column_display_name ) { ?>
ID ) && !$this->is_trash ) - $actions['edit'] = '' . __( 'Edit' ) . ''; - if ( current_user_can( 'delete_post', $post->ID ) ) { - if ( $this->is_trash ) - $actions['untrash'] = "ID ) . "'>" . __( 'Restore' ) . ""; - elseif ( EMPTY_TRASH_DAYS && MEDIA_TRASH ) - $actions['trash'] = "ID ) . "'>" . __( 'Trash' ) . ""; - if ( $this->is_trash || !EMPTY_TRASH_DAYS || !MEDIA_TRASH ) { - $delete_ays = ( !$this->is_trash && !MEDIA_TRASH ) ? " onclick='return showNotice.warn();'" : ''; - $actions['delete'] = "ID ) . "'>" . __( 'Delete Permanently' ) . ""; - } - } - if ( !$this->is_trash ) { - $title =_draft_or_post_title( $post->post_parent ); - $actions['view'] = '' . __( 'View' ) . ''; - } - $actions = apply_filters( 'media_row_actions', $actions, $post ); - echo $this->row_actions( $actions ); + echo $this->row_actions( $this->_get_row_actions( $post, $att_title ) ); ?> $column_display_name ) { ID ) ); - - $edit_link = '%s'; -?> -