mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Use attachment title instead of filename, unless it is empty
git-svn-id: https://develop.svn.wordpress.org/trunk@7533 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -644,10 +644,12 @@ function get_media_item( $attachment_id, $args = null ) {
|
||||
$toggle_links = '';
|
||||
}
|
||||
|
||||
$display_title = ( !empty( $title ) ) ? $title : $filename; // $title shouldn't ever be empty, but just in case
|
||||
|
||||
$item = "
|
||||
$type
|
||||
$toggle_links
|
||||
<div class='filename new'>$filename</div>
|
||||
<div class='filename new'>$display_title</div>
|
||||
<table class='slidetoggle describe $class'>
|
||||
<tbody class='media-item-info'>
|
||||
<tr>
|
||||
|
||||
Reference in New Issue
Block a user