Ticket #29566: 29566.patch
File 29566.patch, 1.2 KB (added by , 9 years ago) |
---|
-
src/wp-includes/media-template.php
394 394 <span class="name"><?php _e( 'Uploaded By' ); ?></span> 395 395 <span class="value">{{ data.authorName }}</span> 396 396 </label> 397 <# if ( data.uploadedTo ) { #>397 <# if ( data.uploadedToTitle ) { #> 398 398 <label class="setting"> 399 399 <span class="name"><?php _e( 'Uploaded To' ); ?></span> 400 400 <# if ( data.uploadedToLink ) { #> -
src/wp-includes/media.php
2643 2643 2644 2644 if ( $attachment->post_parent ) { 2645 2645 $post_parent = get_post( $attachment->post_parent ); 2646 } else { 2647 $post_parent = false; 2648 } 2649 2650 if ( $post_parent ) { 2646 2651 $parent_type = get_post_type_object( $post_parent->post_type ); 2647 2652 if ( $parent_type && $parent_type->show_ui && current_user_can( 'edit_post', $attachment->post_parent ) ) { 2648 2653 $response['uploadedToLink'] = get_edit_post_link( $attachment->post_parent, 'raw' );