| 1 | diff --git wp-admin/includes/class-wp-media-list-table.php wp-admin/includes/class-wp-media-list-table.php |
|---|
| 2 | index 28f9557..f263371 100644 |
|---|
| 3 | --- wp-admin/includes/class-wp-media-list-table.php |
|---|
| 4 | +++ wp-admin/includes/class-wp-media-list-table.php |
|---|
| 5 | @@ -154,7 +154,6 @@ class WP_Media_List_Table extends WP_List_Table { |
|---|
| 6 | |
|---|
| 7 | /* translators: column name */ |
|---|
| 8 | if ( !$this->detached ) { |
|---|
| 9 | - $posts_columns['parent'] = _x( 'Attached to', 'column name' ); |
|---|
| 10 | if ( post_type_supports( 'attachment', 'comments' ) ) |
|---|
| 11 | $posts_columns['comments'] = '<span class="vers"><div title="' . esc_attr__( 'Comments' ) . '" class="comment-grey-bubble"></div></span>'; |
|---|
| 12 | } |
|---|
| 13 | @@ -296,35 +295,6 @@ foreach ( $columns as $column_name => $column_display_name ) { |
|---|
| 14 | <?php |
|---|
| 15 | break; |
|---|
| 16 | |
|---|
| 17 | - case 'parent': |
|---|
| 18 | - if ( $post->post_parent > 0 ) { |
|---|
| 19 | - if ( get_post( $post->post_parent ) ) { |
|---|
| 20 | - $title =_draft_or_post_title( $post->post_parent ); |
|---|
| 21 | - } |
|---|
| 22 | -?> |
|---|
| 23 | - <td <?php echo $attributes ?>><strong> |
|---|
| 24 | - <?php if( current_user_can( 'edit_post', $post->post_parent ) ) { ?> |
|---|
| 25 | - <a href="<?php echo get_edit_post_link( $post->post_parent ); ?>"> |
|---|
| 26 | - <?php echo $title ?></a><?php |
|---|
| 27 | - } else { |
|---|
| 28 | - echo $title; |
|---|
| 29 | - } ?></strong>, |
|---|
| 30 | - <?php echo get_the_time( __( 'Y/m/d' ) ); ?> |
|---|
| 31 | - </td> |
|---|
| 32 | -<?php |
|---|
| 33 | - } else { |
|---|
| 34 | -?> |
|---|
| 35 | - <td <?php echo $attributes ?>><?php _e( '(Unattached)' ); ?><br /> |
|---|
| 36 | - <?php if( $user_can_edit ) {?> |
|---|
| 37 | - <a class="hide-if-no-js" |
|---|
| 38 | - onclick="findPosts.open( 'media[]','<?php echo $post->ID ?>' ); return false;" |
|---|
| 39 | - href="#the-list"> |
|---|
| 40 | - <?php _e( 'Attach' ); ?></a> |
|---|
| 41 | - <?php } ?></td> |
|---|
| 42 | -<?php |
|---|
| 43 | - } |
|---|
| 44 | - break; |
|---|
| 45 | - |
|---|
| 46 | case 'comments': |
|---|
| 47 | $attributes = 'class="comments column-comments num"' . $style; |
|---|
| 48 | ?> |
|---|