Plugin Directory

Changeset 1763161


Ignore:
Timestamp:
11/10/2017 04:42:30 PM (8 years ago)
Author:
devlucasmendes
Message:

Change hardcoded prefixes

Location:
fastdee/trunk/includes/core
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • fastdee/trunk/includes/core/class-fd-base.php

    r1762707 r1763161  
    249249        }
    250250
     251        global $wpdb;
    251252        $queryString = "
    252253                SELECT
    253                     wp_posts.ID as post_id,
     254                    $wpdb->posts.ID as post_id,
    254255                    mt_offer_id.meta_value as _fd_offer_fastdee_id
    255                 FROM wp_posts 
    256                 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 ) 
    257258                WHERE
    258259                " . $by_post_id . "
    259                 wp_posts.post_type = 'product'
     260                $wpdb->posts.post_type = 'product'
    260261                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'
    266267                )
    267268                AND mt_offer_id.post_id IS NOT NULL
  • fastdee/trunk/includes/core/class-fd-util.php

    r1762707 r1763161  
    155155    }
    156156
    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 ) { //
    158158        $product = FD_Base::get_posts_with_fastdee_id( $post_id );
    159159
Note: See TracChangeset for help on using the changeset viewer.