Failed Conditions
Push — develop ( adc0dc...fa73c7 )
by Remco
11:54
created
src/Integration.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -477,9 +477,9 @@
 block discarded – undo
477 477
 
478 478
 		foreach ( $files as $name => $meta_key ) {
479 479
 			// phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotValidated
480
-			if ( isset( $_FILES[ $name ] ) && UPLOAD_ERR_OK === $_FILES[ $name ]['error'] ) {
480
+			if ( isset( $_FILES[$name] ) && UPLOAD_ERR_OK === $_FILES[$name]['error'] ) {
481 481
 				// phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotValidated, WordPress.Security.ValidatedSanitizedInput.MissingUnslash, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
482
-				$value = file_get_contents( $_FILES[ $name ]['tmp_name'] );
482
+				$value = file_get_contents( $_FILES[$name]['tmp_name'] );
483 483
 
484 484
 				update_post_meta( $post_id, $meta_key, $value );
485 485
 			}
Please login to merge, or discard this patch.