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:
ryan 2008-07-06 21:15:38 +00:00
parent 0f48fa0124
commit 79913b557b
1 changed files with 1 additions and 0 deletions

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 = wp_html_excerpt($display_title, 100);
$item = "
$type