@@ 498-500 (lines=3) @@ | ||
495 | } |
|
496 | } |
|
497 | ||
498 | if ( ! empty( $args['name__like'] ) ) { |
|
499 | $this->sql_clauses['where']['name__like'] = $this->db->prepare( "t.name LIKE %s", '%' . $this->db->esc_like( $args['name__like'] ) . '%' ); |
|
500 | } |
|
501 | ||
502 | if ( ! empty( $args['description__like'] ) ) { |
|
503 | $this->sql_clauses['where']['description__like'] = $this->db->prepare( "tt.description LIKE %s", '%' . $this->db->esc_like( $args['description__like'] ) . '%' ); |
|
@@ 502-504 (lines=3) @@ | ||
499 | $this->sql_clauses['where']['name__like'] = $this->db->prepare( "t.name LIKE %s", '%' . $this->db->esc_like( $args['name__like'] ) . '%' ); |
|
500 | } |
|
501 | ||
502 | if ( ! empty( $args['description__like'] ) ) { |
|
503 | $this->sql_clauses['where']['description__like'] = $this->db->prepare( "tt.description LIKE %s", '%' . $this->db->esc_like( $args['description__like'] ) . '%' ); |
|
504 | } |
|
505 | ||
506 | if ( '' !== $parent ) { |
|
507 | $parent = (int) $parent; |