git-svn-id: http://svn.automattic.com/wordpress/trunk@2329 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f4dafc015f
commit
becc1347cb
|
@ -81,6 +81,7 @@ case 'upload':
|
|||
|
||||
$img1_name = (strlen($imgalt)) ? $imgalt : basename( $_FILES['img1']['name'] );
|
||||
$img1_name = preg_replace('/[^a-z0-9.]/i', '', $img1_name);
|
||||
$img1_size = $_POST['img1_size'] ? intval($_POST['img1_size']) : intval($_FILES['img1']['size']);
|
||||
|
||||
$img1_type = (strlen($imgalt)) ? $_POST['img1_type'] : $_FILES['img1']['type'];
|
||||
$imgdesc = htmlentities2($imgdesc);
|
||||
|
|
Loading…
Reference in New Issue