|
@@ 451-453 (lines=3) @@
|
| 448 |
|
$form_table_name = $wpdb->prefix . 'frm_forms'; |
| 449 |
|
} |
| 450 |
|
|
| 451 |
|
if ( ! empty( $order_by ) && strpos( $order_by, 'ORDER BY' ) === false ) { |
| 452 |
|
$order_by = ' ORDER BY ' . $order_by; |
| 453 |
|
} |
| 454 |
|
|
| 455 |
|
$limit = FrmAppHelper::esc_limit($limit); |
| 456 |
|
|
|
@@ 569-571 (lines=3) @@
|
| 566 |
|
public static function getIds( $where = '', $order_by = '', $limit = '' ) { |
| 567 |
|
_deprecated_function( __FUNCTION__, '2.0' ); |
| 568 |
|
global $wpdb; |
| 569 |
|
if ( ! empty($order_by) && ! strpos($order_by, 'ORDER BY') !== false ) { |
| 570 |
|
$order_by = ' ORDER BY ' . $order_by; |
| 571 |
|
} |
| 572 |
|
|
| 573 |
|
$query = 'SELECT fi.id FROM ' . $wpdb->prefix . 'frm_fields fi ' . |
| 574 |
|
'LEFT OUTER JOIN ' . $wpdb->prefix . 'frm_forms fr ON fi.form_id=fr.id' . |