Use filename if no title. Props tellyworth. fixes #5080 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@6235 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a6076f7083
commit
94c4c00308
@ -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 )
|
||||
|
Loading…
Reference in New Issue
Block a user