git-svn-id: https://develop.svn.wordpress.org/trunk@2278 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
dd7a83f22c
commit
600e35ca33
|
@ -195,14 +195,12 @@ die();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( ereg('image/',$img1_type) )
|
||||||
|
$piece_of_code = "<img src=';". get_settings('fileupload_url') ."/$img1_name' alt='$imgdesc' />";
|
||||||
|
else
|
||||||
|
$piece_of_code = "<a href='". get_settings('fileupload_url') . "/$img1_name' title='$imgdesc'>$imgdesc</a>";
|
||||||
|
|
||||||
|
$piece_of_code = htmlspecialchars( $piece_of_code );
|
||||||
if ( ereg('image/',$img1_type)) {
|
|
||||||
$piece_of_code = "<img src="". get_settings('fileupload_url') ."/$img1_name" alt="$imgdesc" />";
|
|
||||||
} else {
|
|
||||||
$piece_of_code = "<a href="". get_settings('fileupload_url') . "/$img1_name" title="$imgdesc" >$imgdesc</a>";
|
|
||||||
};
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<h3><?php _e('File uploaded!') ?></h3>
|
<h3><?php _e('File uploaded!') ?></h3>
|
||||||
|
|
Loading…
Reference in New Issue