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: https://develop.svn.wordpress.org/branches/2.3@6234 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
ryanboren committed Oct 12, 2007
1 parent d8c2a4b commit 687a965
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 687a965

Please sign in to comment.