@@ -474,8 +474,8 @@ |
||
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 | } |