Failed Conditions
Push — develop ( b785b7...04cf9b )
by Remco
09:34
created
src/Integration.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -474,8 +474,8 @@
 block discarded – undo
474 474
 		);
475 475
 
476 476
 		foreach ( $files as $name => $meta_key ) {
477
-			if ( isset( $_FILES[ $name ] ) && UPLOAD_ERR_OK === $_FILES[ $name ]['error'] ) { // WPCS: input var okay.
478
-				$value = file_get_contents( $_FILES[ $name ]['tmp_name'] ); // WPCS: input var okay. // WPCS: sanitization ok.
477
+			if ( isset( $_FILES[$name] ) && UPLOAD_ERR_OK === $_FILES[$name]['error'] ) { // WPCS: input var okay.
478
+				$value = file_get_contents( $_FILES[$name]['tmp_name'] ); // WPCS: input var okay. // WPCS: sanitization ok.
479 479
 
480 480
 				update_post_meta( $post_id, $meta_key, $value );
481 481
 			}
Please login to merge, or discard this patch.