Changeset 37952
- Timestamp:
- 07/04/2016 07:33:43 PM (9 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-media-list-table.php
r37941 r37952 482 482 <strong><a href="<?php echo get_edit_post_link( $post->post_parent ); ?>"> 483 483 <?php echo $title ?></a></strong><?php 484 } elseif ( current_user_can( 'read_post', $post->post_parent ) ) {484 } elseif ( $parent_type && current_user_can( 'read_post', $post->post_parent ) ) { 485 485 ?> 486 486 <strong><?php echo $title ?></strong><?php -
trunk/src/wp-includes/media.php
r37941 r37952 3063 3063 if ( $post_parent ) { 3064 3064 $parent_type = get_post_type_object( $post_parent->post_type ); 3065 3065 3066 if ( $parent_type && $parent_type->show_ui && current_user_can( 'edit_post', $attachment->post_parent ) ) { 3066 3067 $response['uploadedToLink'] = get_edit_post_link( $attachment->post_parent, 'raw' ); 3067 3068 } 3068 3069 3069 if ( current_user_can( 'read_post', $attachment->post_parent ) ) {3070 if ( $parent_type && current_user_can( 'read_post', $attachment->post_parent ) ) { 3070 3071 $response['uploadedToTitle'] = $post_parent->post_title ? $post_parent->post_title : __( '(no title)' ); 3071 3072 }
Note: See TracChangeset
for help on using the changeset viewer.