Failed Conditions
Push — develop ( 158dbb...475ba3 )
by Remco
04:44
created
src/Integration.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -608,9 +608,9 @@
 block discarded – undo
608 608
 
609 609
 		foreach ( $files as $name => $meta_key ) {
610 610
 			// phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotValidated
611
-			if ( isset( $_FILES[ $name ] ) && \UPLOAD_ERR_OK === $_FILES[ $name ]['error'] ) {
611
+			if ( isset( $_FILES[$name] ) && \UPLOAD_ERR_OK === $_FILES[$name]['error'] ) {
612 612
 				// phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotValidated, WordPress.Security.ValidatedSanitizedInput.MissingUnslash, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
613
-				$value = file_get_contents( $_FILES[ $name ]['tmp_name'], true );
613
+				$value = file_get_contents( $_FILES[$name]['tmp_name'], true );
614 614
 
615 615
 				update_post_meta( $post_id, $meta_key, $value );
616 616
 			}
Please login to merge, or discard this patch.