We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 34959e5 + b9433db commit 131dcfeCopy full SHA for 131dcfe
1 file changed
src/Query.php
@@ -264,7 +264,6 @@ public function where( $column, $param1 = null, $param2 = null, $joint = 'and' )
264
//if not null does it contain . it could be column so don't parse as string
265
//If not column then use wpdb prepare
266
//if contains $prefix
267
- $contain_join = preg_replace( '/^(\s?AND ?|\s?OR ?)|\s$/i', '', $param2 );
268
269
$param2 = is_array( $param2 ) ? ( '("' . implode( '","', $param2 ) . '")' ) : ( $param2 === null ? 'null' : ( strpos( $param2, '.' ) !== false || strpos( $param2, $wpdb->prefix ) !== false ? $param2 : $wpdb->prepare( is_numeric( $param2 ) ? '%d' : '%s', $param2 ) ) );
270
0 commit comments