diff --git wp-admin/includes/class-wp-media-list-table.php wp-admin/includes/class-wp-media-list-table.php
index 28f9557..f263371 100644
|
|
|
class WP_Media_List_Table extends WP_List_Table { |
| 154 | 154 | |
| 155 | 155 | /* translators: column name */ |
| 156 | 156 | if ( !$this->detached ) { |
| 157 | | $posts_columns['parent'] = _x( 'Attached to', 'column name' ); |
| 158 | 157 | if ( post_type_supports( 'attachment', 'comments' ) ) |
| 159 | 158 | $posts_columns['comments'] = '<span class="vers"><div title="' . esc_attr__( 'Comments' ) . '" class="comment-grey-bubble"></div></span>'; |
| 160 | 159 | } |
| … |
… |
foreach ( $columns as $column_name => $column_display_name ) { |
| 296 | 295 | <?php |
| 297 | 296 | break; |
| 298 | 297 | |
| 299 | | case 'parent': |
| 300 | | if ( $post->post_parent > 0 ) { |
| 301 | | if ( get_post( $post->post_parent ) ) { |
| 302 | | $title =_draft_or_post_title( $post->post_parent ); |
| 303 | | } |
| 304 | | ?> |
| 305 | | <td <?php echo $attributes ?>><strong> |
| 306 | | <?php if( current_user_can( 'edit_post', $post->post_parent ) ) { ?> |
| 307 | | <a href="<?php echo get_edit_post_link( $post->post_parent ); ?>"> |
| 308 | | <?php echo $title ?></a><?php |
| 309 | | } else { |
| 310 | | echo $title; |
| 311 | | } ?></strong>, |
| 312 | | <?php echo get_the_time( __( 'Y/m/d' ) ); ?> |
| 313 | | </td> |
| 314 | | <?php |
| 315 | | } else { |
| 316 | | ?> |
| 317 | | <td <?php echo $attributes ?>><?php _e( '(Unattached)' ); ?><br /> |
| 318 | | <?php if( $user_can_edit ) {?> |
| 319 | | <a class="hide-if-no-js" |
| 320 | | onclick="findPosts.open( 'media[]','<?php echo $post->ID ?>' ); return false;" |
| 321 | | href="#the-list"> |
| 322 | | <?php _e( 'Attach' ); ?></a> |
| 323 | | <?php } ?></td> |
| 324 | | <?php |
| 325 | | } |
| 326 | | break; |
| 327 | | |
| 328 | 298 | case 'comments': |
| 329 | 299 | $attributes = 'class="comments column-comments num"' . $style; |
| 330 | 300 | ?> |