Skip to content

Commit

Permalink
Use filename if no title. Props tellyworth. fixes #5080 for 2.3
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.automattic.com/wordpress/branches/2.3@6234 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
ryan committed Oct 12, 2007
1 parent 574d8bb commit 9c3151f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wp-admin/includes/upload.php
Expand Up @@ -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 )
Expand Down

0 comments on commit 9c3151f

Please sign in to comment.