Excerpt long media titles. Props nbachiyski. fixes #7253

git-svn-id: https://develop.svn.wordpress.org/trunk@8265 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-07-06 21:15:38 +00:00
parent 3cbb31b495
commit e97cb4f857

View File

@ -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 = ( !empty( $title ) ) ? $title : $filename; // $title shouldn't ever be empty, but just in case
$display_title = wp_html_excerpt($display_title, 100);
$item = " $item = "
$type $type