diff --git a/wp-admin/includes/upload.php b/wp-admin/includes/upload.php index b09ff2fdff..3f472e0287 100644 --- a/wp-admin/includes/upload.php +++ b/wp-admin/includes/upload.php @@ -105,8 +105,9 @@ function wp_upload_form() { $id = get_the_ID(); global $post_id, $tab, $style; $enctype = $id ? '' : ' enctype="multipart/form-data"'; + $post_id = (int) $post_id; ?> - id="upload-file" method="post" action=""> + id="upload-file" method="post" action="">