Skip to content

Commit 0a62771

Browse files
committed
Removed error logging
1 parent b4c74fe commit 0a62771

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

includes/class-ajax.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,6 @@ public function save_form() {
137137
$form = weforms()->form->get( $form_id );
138138
$update_entries = $form->update_entries( $form_id, $form_fields );
139139

140-
141-
//error_log(print_r($form_fields,1));
142-
143140
do_action( 'weforms_update_form', $form_data['wpuf_form_id'], $form_fields, $settings );
144141

145142
wp_send_json_success( [ 'form_fields' => $form_fields ] );

includes/class-form.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -388,22 +388,16 @@ public function update_entries( $form_id, $form_fields ) {
388388
}
389389
}
390390
$entries = weforms_get_form_entries($form_id);
391-
error_log("Entries" . " = " . print_r($entries,1));
392-
error_log("Fields = " . print_r($field_to_change,1));
393391
if ($field_to_change == " ") {
394392
return;
395393
}
396-
foreach ( $entries as $entry ) {
397-
394+
foreach ( $entries as $entry ) {
398395
$entry_id = $entry->id;
399396
$values = weforms_get_entry_meta( $entry_id );
400397
$keys = array_keys($values);
401-
error_log("keys" . " = " . print_r($keys,1));
402398
foreach ( $keys as $key ) {
403399
if ( $key == $field_to_change) {
404400
$update_keys = $wpdb->update( $wpdb->weforms_entrymeta, array( 'meta_key' => $new_name ), array( 'meta_key' => $key, 'weforms_entry_id' => $entry_id ) );
405-
error_log("Key" . " = " . print_r($key,1));
406-
error_log("keys will be changed");
407401
}
408402
}
409403
}

0 commit comments

Comments
 (0)