diff --git a/wp-admin/upload.php b/wp-admin/upload.php index ba59b6c70..e7025bda0 100644 --- a/wp-admin/upload.php +++ b/wp-admin/upload.php @@ -171,7 +171,7 @@ die(); $moved = copy($img1, $pathtofile); } // Still couldn't get it. Give up. - if (!moved) { + if (!$moved) { die(sprintf(__("Couldn't upload your file to %s."), $pathtofile)); } else { chmod($pathtofile, 0666);