Skip to content

Commit

Permalink
Move to not be undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
gikaragia committed May 14, 2024
1 parent 15ff6c8 commit fb592cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wp-job-manager-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@ function job_manager_construct_secondary_conditions( $search_term, $is_excluding

$not_string = $is_excluding ? 'NOT ' : '';
$conditions = [];
$meta_value = $wildcard_search . $wpdb->esc_like( $search_term ) . $wildcard_search;

/**
* Can be used to disable searching post meta for job searches.
Expand All @@ -359,7 +360,6 @@ function job_manager_construct_secondary_conditions( $search_term, $is_excluding
*/
if ( apply_filters( 'job_listing_search_post_meta', true ) ) {

$meta_value = $wildcard_search . $wpdb->esc_like( $search_term ) . $wildcard_search;
// Only selected meta keys.
if ( $searchable_meta_keys ) {
$meta_keys = implode( "','", array_map( 'esc_sql', $searchable_meta_keys ) );
Expand Down

0 comments on commit fb592cd

Please sign in to comment.