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

git-svn-id: http://svn.automattic.com/wordpress/trunk@6235 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2007-10-12 22:15:54 +00:00
parent 42fee85546
commit 6dea91b30b
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 )