diff --git wp-admin/includes/class-wp-media-list-table.php wp-admin/includes/class-wp-media-list-table.php
index 67fd187..87aa9f7 100644
|
|
foreach ( $columns as $column_name => $column_display_name ) { |
301 | 301 | break; |
302 | 302 | |
303 | 303 | case 'parent': |
304 | | if ( $post->post_parent > 0 && get_post( $post->post_parent ) ) { |
| 304 | if ( $post->post_parent > 0 ) |
| 305 | $parent = get_post( $post->post_parent ); |
| 306 | else |
| 307 | $parent = false; |
| 308 | |
| 309 | if ( $parent ) { |
305 | 310 | $title = _draft_or_post_title( $post->post_parent ); |
| 311 | $parent_type = get_post_type_object( $parent->post_type ); |
306 | 312 | ?> |
307 | 313 | <td <?php echo $attributes ?>><strong> |
308 | | <?php if ( current_user_can( 'edit_post', $post->post_parent ) ) { ?> |
| 314 | <?php if ( current_user_can( 'edit_post', $post->post_parent ) && $parent_type->show_ui ) { ?> |
309 | 315 | <a href="<?php echo get_edit_post_link( $post->post_parent ); ?>"> |
310 | 316 | <?php echo $title ?></a><?php |
311 | 317 | } else { |