Skip to content

Commit

Permalink
Drop deprecated support for string where value in generate_query_stri…
Browse files Browse the repository at this point in the history
…ng_from_pieces
  • Loading branch information
Crabcyborg committed Oct 17, 2024
1 parent 19df972 commit 3b7e057
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions classes/models/FrmDb.php
Original file line number Diff line number Diff line change
Expand Up @@ -442,13 +442,6 @@ private static function generate_query_string_from_pieces( $columns, $table, $wh
self::get_where_clause_and_values( $where );
global $wpdb;
$query = $wpdb->prepare( $query . $where['where'] . ' ' . implode( ' ', $args ), $where['values'] ); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared
} else {
/**
* Allow the $where to be prepared before we receive it here.
* This is a fallback for reverse compatibility, but is not recommended
*/
_deprecated_argument( 'where', '2.0', esc_html__( 'Use the query in an array format so it can be properly prepared.', 'formidable' ) );
$query .= $where . ' ' . implode( ' ', $args );
}

return $query;
Expand Down

0 comments on commit 3b7e057

Please sign in to comment.