From 97eb710697e6076a59d43acfa2f9d80eb68c569a Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 14 Aug 2014 21:40:11 +0000 Subject: [PATCH] Media Grid: Use an existing string for posts without a title. see #24716. git-svn-id: https://develop.svn.wordpress.org/trunk@29493 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/media.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/media.php b/src/wp-includes/media.php index 45f7ec83fc..2a0c5c0bc1 100644 --- a/src/wp-includes/media.php +++ b/src/wp-includes/media.php @@ -2647,7 +2647,7 @@ function wp_prepare_attachment_for_js( $attachment ) { if ( $parent_type && $parent_type->show_ui && current_user_can( 'edit_post', $attachment->post_parent ) ) { $response['uploadedToLink'] = get_edit_post_link( $attachment->post_parent, 'raw' ); } - $response['uploadedToTitle'] = $post_parent->post_title ? $post_parent->post_title : __( '(No title)' ); + $response['uploadedToTitle'] = $post_parent->post_title ? $post_parent->post_title : __( '(no title)' ); } $attached_file = get_attached_file( $attachment->ID );