|
@@ -41,7 +41,7 @@ |
|
|
block discarded – undo |
|
41
|
41
|
|
|
42
|
42
|
$user_ID = get_current_user_id(); |
|
43
|
43
|
$user_ID = ( $user_ID ? $user_ID : '' ); |
|
44
|
|
- $posted_value = ( FrmAppHelper::is_admin() && $_POST && isset( $_POST['item_meta'][ $this->field['id'] ] ) ); // WPCS: CSRF ok. |
|
|
44
|
+ $posted_value = ( FrmAppHelper::is_admin() && $_POST && isset( $_POST['item_meta'][$this->field['id']] ) ); // WPCS: CSRF ok. |
|
45
|
45
|
$action = ( isset( $args['action'] ) ? $args['action'] : ( isset( $args['form_action'] ) ? $args['form_action'] : '' ) ); |
|
46
|
46
|
$updating = $action == 'update'; |
|
47
|
47
|
$value = ( is_numeric( $this->field['value'] ) || $posted_value || $updating ) ? $this->field['value'] : $user_ID; |
Please login to merge, or discard this patch.