Changeset 37952 for trunk/src/wp-includes/media.php
- Timestamp:
- 07/04/2016 07:33:43 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.