mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-22 00:01:27 +01:00
git-svn-id: http://svn.automattic.com/wordpress/trunk@2278 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
26831e298d
commit
b3a97be613
@ -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…
Reference in New Issue
Block a user