mirror of
git://develop.git.wordpress.org/
synced 2025-01-19 13:47:02 +01:00
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>";
|
||||
|
||||
|
||||
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 );
|
||||
?>
|
||||
|
||||
<h3><?php _e('File uploaded!') ?></h3>
|
||||
|
Loading…
x
Reference in New Issue
Block a user