Use filename if no title. Props tellyworth. fixes #5080 for 2.3

git-svn-id: http://svn.automattic.com/wordpress/branches/2.3@6234 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2007-10-12 22:15:32 +00:00
parent 574d8bb7d3
commit 9c3151f5bb
1 changed files with 3 additions and 0 deletions

View File

@ -31,6 +31,9 @@ function wp_upload_display( $dims = false, $href = '' ) {
$src = wp_make_link_relative( $src_base );
$src_base = str_replace($src, '', $src_base);
if ( !trim($post_title) )
$post_title = basename($src);
$r = '';
if ( $href )