Excerpt long media titles. Props nbachiyski. fixes #7253
git-svn-id: http://svn.automattic.com/wordpress/trunk@8265 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0f48fa0124
commit
79913b557b
|
@ -720,6 +720,7 @@ function get_media_item( $attachment_id, $args = null ) {
|
|||
}
|
||||
|
||||
$display_title = ( !empty( $title ) ) ? $title : $filename; // $title shouldn't ever be empty, but just in case
|
||||
$display_title = wp_html_excerpt($display_title, 100);
|
||||
|
||||
$item = "
|
||||
$type
|
||||
|
|
Loading…
Reference in New Issue