Skip to content
This repository has been archived by the owner on Feb 1, 2019. It is now read-only.

Commit

Permalink
Removes logged error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
gboone committed Aug 27, 2014
1 parent fe23374 commit 2384373
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions inc/meta-box-models.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@ public function validate_link( $field, $post_id ) {

$meta_key = $key;
} else {
error_log("Skipping field {$i} of {$count}", 0);
continue;
}
}
Expand Down Expand Up @@ -290,7 +289,6 @@ public function validate( $post_ID, $field ) {
} else {
return null;
}
// error_log('Key is '. $key . ' value is ' . $value);
if ( array_key_exists('do_not_validate', $field) ) {
return;
}
Expand Down Expand Up @@ -340,7 +338,6 @@ public function validate( $post_ID, $field ) {
} elseif ( ! empty( $value ) && ! is_array($value)) {
// make sure whatever we get for anything else is a string
$postvalues = (string)$value;
// error_log('Post data ' . $value . ' cleaned for ' . $key);
} else {
$postvalues = null;
}
Expand Down Expand Up @@ -368,7 +365,6 @@ public function save( $post_ID, $postvalues ) {

// save post data for any fields that sent them
foreach ( $postvalues as $key => $value ) {
error_log("Key is {$key} and value is {$value}.");
$existing = get_post_meta( $post_ID, $key, $single = true );
if ( $value == null && isset($existing) ) {
delete_post_meta($post_ID, $key);
Expand All @@ -393,7 +389,6 @@ public function validate_and_save( $post_ID ) {
foreach ( $field['fields'] as $f ) {
$f['meta_key'] = $field['meta_key'] . '_' . $f['meta_key'];
$value = $this->validate( $post_ID, $f );
error_log('Saving ' . $value. ' to ' . $f['meta_key']);
$validate[$f['meta_key']] = $value;
}
} else {
Expand Down

0 comments on commit 2384373

Please sign in to comment.