Skip to content

Commit

Permalink
Tweak meta keyword search
Browse files Browse the repository at this point in the history
  • Loading branch information
mikejolley committed Mar 20, 2015
1 parent 5238ee2 commit 0b0a9db
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 @@ -143,7 +143,7 @@ function get_job_listings_keyword_search( $args ) {
global $wpdb, $job_manager_keyword;

// Query matching ids to avoid more joins
$post_ids = $wpdb->get_col( "SELECT post_id FROM {$wpdb->postmeta} WHERE meta_value LIKE '%" . esc_sql( $job_manager_keyword ) . "%'" );
$post_ids = $wpdb->get_col( "SELECT post_id FROM {$wpdb->postmeta} WHERE meta_value LIKE '" . esc_sql( $job_manager_keyword ) . "%'" );
$conditions = array();

$conditions[] = "{$wpdb->posts}.post_title LIKE '%" . esc_sql( $job_manager_keyword ) . "%'";
Expand Down

0 comments on commit 0b0a9db

Please sign in to comment.