Skip to content

Commit

Permalink
replace default wp_ table name prefix by a variable
Browse files Browse the repository at this point in the history
replaced wp_postmeta.meta_value by {$wpdb->postmeta}.meta_value
  • Loading branch information
vobornik committed Jan 12, 2013
1 parent 0fcb967 commit a5587b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syndicationdataqueries.class.php
Expand Up @@ -94,7 +94,7 @@ function posts_search ($search, &$query) {
// checks -- for reasons of both performance and correctness. Pitch:
$search .= " -- '";
elseif ($query->get('fields')=='_synfrom') :
$search .= " AND ({$wpdb->postmeta}.meta_key = '".$query->get('meta_key')."' AND wp_postmeta.meta_value = '".$query->get('meta_value')."') -- '";
$search .= " AND ({$wpdb->postmeta}.meta_key = '".$query->get('meta_key')."' AND {$wpdb->postmeta}.meta_value = '".$query->get('meta_value')."') -- '";
endif;
return $search;
} /* SyndicationDataQueries::posts_search () */
Expand Down

0 comments on commit a5587b9

Please sign in to comment.