mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-30 10:14:31 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user