Plugin Directory

Changeset 1299362


Ignore:
Timestamp:
12/02/2015 11:04:18 PM (10 years ago)
Author:
trackhs
Message:

1.8.3 fixes

Location:
track-connect/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • track-connect/trunk/includes/api/request.php

    r1299255 r1299362  
    1111        $this->domain = $domain;   
    1212        $this->debug =  $debug;
    13         $this->endpoint = (strtoupper($domain) == 'HSR')?'http://hsr.trackstaging.info':'https://'.strtolower($domain).'.trackhs.com';
     13        $this->endpoint = 'https://'.strtolower($domain).'.trackhs.com';
    1414        //$this->endpoint = 'http://utopian.jreed.trackhs.com';
    1515    }
     
    4444       
    4545        // Clean out other domain units       
    46         $results = $wpdb->get_results("SELECT post_id as id FROM wp_postmeta WHERE _listing_domain != '".$domain."' GROUP BY post_id;");
     46        /*$results = $wpdb->get_results("SELECT post_id as id FROM wp_postmeta WHERE _listing_domain != '".$domain."' GROUP BY post_id;");
    4747        if(count($results)){
    4848            foreach($results as $post){
     
    5050                //$wpdb->query("DELETE FROM wp_posts WHERE id = '".$post->id."' ;");
    5151            }     
    52         }
    53         $unitsRemoved = count($results);
     52        }*/
     53        $unitsRemoved = 0;
    5454       
    5555        if($this->debug == 1){
     
    278278            )
    279279        );
    280  
     280
    281281        /* Check for node stuff */
    282282        $row = $wpdb->get_results("SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE table_name = 'wp_terms' AND column_name = 'node_id'"  );       
     
    333333                description = '".$node->typename."',
    334334                parent = '0';");
    335                    
     335               
     336                foreach($node->units as $unitId){
     337                    $post = $wpdb->get_row("SELECT ID FROM wp_posts WHERE unit_id = '".$unitId."';");
     338                    if($post){
     339                        $wpdb->query("DELETE FROM wp_term_relationships WHERE object_id = '".$post->ID."' AND term_taxonomy_id = '".$termId."';");
     340                        $wpdb->query("INSERT INTO wp_term_relationships set
     341                            object_id = '".$post->ID."',
     342                            term_taxonomy_id = '".$termId."';");
     343                    }
     344                }
     345                     
    336346            }else{
    337347                $wpdb->query("UPDATE wp_terms set
  • track-connect/trunk/includes/class-listings-search-widget.php

    r1299288 r1299362  
    6969        */
    7070        echo '<span class="beds-header"><b>Bedrooms</b></span><input type="hidden" id="lowbed" name="lowbed" /><input type="hidden" id="highbed" name="highbed" /><br>';
    71         echo '<input class="slider-beds" type="text" id="slider-beds" readonly style="border:0; color:#f6931f; font-weight:bold;"><br><br>';
     71        echo '<input class="slider-beds" type="text" id="slider-beds" readonly style="border:0; color:#f6931f; font-weight:bold;"><br>';
    7272        echo '<div id="bed-range"></div><br>';
    7373       
    7474        // Price Range
    7575        echo '<span class="price-header" for="amount"><b>Price range</b></span><input type="hidden" id="lowrate" name="low" /><input type="hidden" id="highrate" name="high" /><br>';
    76         echo '<input class="slider-amount" type="text" id="amount" readonly style="border:0; color:#f6931f; font-weight:bold;"><br><br>';
     76        echo '<input class="slider-amount" type="text" id="amount" readonly style="border:0; color:#f6931f; font-weight:bold;"><br>';
    7777        echo '<div id="price-range"></div><br>';
    7878       
  • track-connect/trunk/plugin.php

    r1299288 r1299362  
    77    Author URI: http://www.trackhs.com
    88
    9     Version: 1.8.2
     9    Version: 1.8.3
    1010
    1111    License: GNU General Public License v2.0 (or later)
     
    5555
    5656    define( 'WP_LISTINGS_URL', plugin_dir_url( __FILE__ ) );
    57     define( 'WP_LISTINGS_VERSION', '1.8.2' );
     57    define( 'WP_LISTINGS_VERSION', '1.8.3' );
    5858
    5959    /** Load textdomain for translation */
  • track-connect/trunk/readme.txt

    r1299288 r1299362  
    44Requires at least: 3.7
    55Tested up to: 4.2.3
    6 Stable tag: 1.8.2
     6Stable tag: 1.8.3
    77
    88Creates and syncs listing-type posts from TRACK PM, a cloud-based property management system (www.trackhs.com).
Note: See TracChangeset for help on using the changeset viewer.