Changeset 1763161
- Timestamp:
- 11/10/2017 04:42:30 PM (8 years ago)
- Location:
- fastdee/trunk/includes/core
- Files:
-
- 2 edited
-
class-fd-base.php (modified) (1 diff)
-
class-fd-util.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
fastdee/trunk/includes/core/class-fd-base.php
r1762707 r1763161 249 249 } 250 250 251 global $wpdb; 251 252 $queryString = " 252 253 SELECT 253 wp_posts.ID as post_id,254 $wpdb->posts.ID as post_id, 254 255 mt_offer_id.meta_value as _fd_offer_fastdee_id 255 FROM wp_posts256 LEFT JOIN wp_postmeta AS mt_offer_id ON ( wp_posts.ID = mt_offer_id.post_id )256 FROM $wpdb->posts 257 LEFT JOIN $wpdb->postmeta AS mt_offer_id ON ( $wpdb->posts.ID = mt_offer_id.post_id ) 257 258 WHERE 258 259 " . $by_post_id . " 259 wp_posts.post_type = 'product'260 $wpdb->posts.post_type = 'product' 260 261 AND ( 261 wp_posts.post_status = 'publish'262 OR wp_posts.post_status = 'future'263 OR wp_posts.post_status = 'draft'264 OR wp_posts.post_status = 'pending'265 OR wp_posts.post_status = 'private'262 $wpdb->posts.post_status = 'publish' 263 OR $wpdb->posts.post_status = 'future' 264 OR $wpdb->posts.post_status = 'draft' 265 OR $wpdb->posts.post_status = 'pending' 266 OR $wpdb->posts.post_status = 'private' 266 267 ) 267 268 AND mt_offer_id.post_id IS NOT NULL -
fastdee/trunk/includes/core/class-fd-util.php
r1762707 r1763161 155 155 } 156 156 157 public static function fd_get_product_by_wp_post_id( $post_id ) { 157 public static function fd_get_product_by_wp_post_id( $post_id ) { // 158 158 $product = FD_Base::get_posts_with_fastdee_id( $post_id ); 159 159
Note: See TracChangeset
for help on using the changeset viewer.