Skip to content
This repository was archived by the owner on Mar 17, 2022. It is now read-only.

Commit e3a8db6

Browse files
authored
Merge pull request #326 from masato-igarashi/master
fix issue #320
2 parents 8113f35 + 2b3c897 commit e3a8db6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Hyyan/WPI/Product/Variation.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public static function getRelatedVariation($variatonID, $returnIDS = false)
115115
//on translations when processing new order
116116
//it also did not return all versions of post for deletion
117117
global $wpdb;
118-
$postids=$wpdb->get_col("select post_id from wp_postmeta where meta_key='" .
118+
$postids=$wpdb->get_col("select post_id from " . $wpdb->postmeta . " where meta_key='" .
119119
self::DUPLICATE_KEY . "' and meta_value=" . $variatonID);
120120

121121
if (true === $returnIDS) {

0 commit comments

Comments
 (0)