Commit e500cd17 authored by Eric Windham's avatar Eric Windham

Merge branch 'hf3.4.18' into 'develop'

Removed unnecessary columns that don't exist in all db versions.

See merge request !3846
parents ea352a89 a242fdce
Pipeline #2732 passed with stages
in 5 minutes and 3 seconds
......@@ -570,12 +570,12 @@ if( get_option( 'ninja_forms_load_deprecated', FALSE ) && ! ( isset( $_POST[ 'nf
$sql = "INSERT INTO {$table} (type) VALUES ('log');";
$wpdb->query( $sql );
$id = $wpdb->insert_id;
$sql = "INSERT INTO {$meta_table} ( parent_id, `key`, `value`, meta_key, meta_value) VALUES ";
$sql = "INSERT INTO {$meta_table} ( parent_id, `key`, `value`) VALUES ";
$trace = debug_backtrace( DEBUG_BACKTRACE_IGNORE_ARGS );
$trace = maybe_serialize( json_encode( $trace ) );
$wpdb->escape_by_ref( $query );
$sql .= "({$id}, 'query', '{$query}', 'query', '{$query}'), ";
$sql .= "({$id}, 'trace', '{$trace}', 'trace', '{$trace}');";
$sql .= "({$id}, 'query', '{$query}'), ";
$sql .= "({$id}, 'trace', '{$trace}');";
$wpdb->query( $sql );
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment