Skip to content

Commit 131dcfe

Browse files
authored
Merge pull request #1 from mamatharao05/fix/PRESS0-1965-deprecated-warning
Removed unused preg_replace() call to prevent deprecation warning
2 parents 34959e5 + b9433db commit 131dcfe

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

src/Query.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,6 @@ public function where( $column, $param1 = null, $param2 = null, $joint = 'and' )
264264
//if not null does it contain . it could be column so don't parse as string
265265
//If not column then use wpdb prepare
266266
//if contains $prefix
267-
$contain_join = preg_replace( '/^(\s?AND ?|\s?OR ?)|\s$/i', '', $param2 );
268267

269268
$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 ) ) );
270269

0 commit comments

Comments
 (0)