PluginProbe
weForms – Easy Drag & Drop Contact Form Builder For WordPress / 1.6.10
weForms – Easy Drag & Drop Contact Form Builder For WordPress v1.6.10
1.6.7 1.6.8 1.6.9 1.6.12 1.6.13 1.6.14 1.6.15 1.6.16 1.6.17 1.6.18 1.6.19 1.6.2 1.6.20 1.6.21 1.6.22 1.6.23 1.6.24 1.6.25 1.6.26 1.6.27 1.6.28 1.6.3 1.6.4 1.6.5 1.6.6 All 74 releases
← All changes | includes/class-form-entry.php +4 -9 1.6.231.6.10 View file →
@@ -109,16 +109,11 @@
109 109 $grid_css = '<style>.wpufTable {display: table; width: 100%; } .wpufTableRow {display: table-row; } .wpufTableRow:nth-child(even) {background-color: #f5f5f5; } .wpufTableHeading {background-color: #eee; display: table-header-group; font-weight: bold; } .wpufTableCell, .wpufTableHead {border: none; display: table-cell; padding: 3px 10px; } .wpufTableFoot {background-color: #eee; display: table-footer-group; font-weight: bold; } .wpufTableBody {display: table-row-group; }</style>';
110 110
111 111 $values = [];
112 112
113 - $query = $wpdb->prepare(
114 - "
115 - SELECT * FROM {$wpdb->weforms_entries} as entry
116 - LEFT JOIN {$wpdb->weforms_entrymeta} AS meta ON entry.id = meta.weforms_entry_id
117 - WHERE entry.id = %d
118 - ",
119 - $this->id
120 - );
113 + $query = "SELECT * FROM {$wpdb->weforms_entries} as entry
114 + LEFT JOIN {$wpdb->weforms_entrymeta} AS meta ON entry.id = meta.weforms_entry_id
115 + WHERE entry.id = {$this->id}";
121 116
122 117 $results = $wpdb->get_results( $query );
123 118
124 119 if ( $results ) {
@@ -451,9 +446,9 @@
451 446 */
452 447 public static function get_form_id( $entry_id ) {
453 448 global $wpdb;
454 449
455 - $results = $wpdb->get_results( $wpdb->prepare( "SELECT form_id FROM {$wpdb->prefix}weforms_entries WHERE id = %d ", $entry_id ) );
450 + $results = $wpdb->get_results( "SELECT form_id FROM {$wpdb->prefix}weforms_entries WHERE id = {$entry_id} " );
456 451
457 452 return ! empty( $results[0]->form_id ) ? $results[0]->form_id : null;
458 453 }
459 454 }