mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-07 09:49:04 +00:00
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:
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user