Plugin Directory

Changeset 1311161


Ignore:
Timestamp:
12/17/2015 08:25:03 PM (10 years ago)
Author:
trackhs
Message:

1.9.4 fixes

Location:
track-connect/trunk
Files:
4 edited

Legend:

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

    r1311153 r1311161  
    220220                $term = $wpdb->get_row("SELECT term_id FROM wp_terms WHERE slug = 'active' LIMIT 1;");
    221221                $wpdb->query("DELETE FROM wp_term_relationships WHERE object_id = '".$post_id."' AND term_taxonomy_id = '".$term->term_id."';");
    222                 $wpdb->insert( 'wp_term_relationships',
    223                             array( 'object_id' => $post_id, 'term_taxonomy_id' => $term->term_id ), 
    224                             array( '%d', '%d' ) );
     222                $wpdb->query("INSERT INTO wp_term_relationships set
     223                    object_id = '".$post_id."',
     224                    term_taxonomy_id = '".$term->term_id."';");
    225225               
    226226                // Update the Amenities
     
    302302                    }
    303303                }
    304                            
     304               
    305305                //Create the Status   
    306306                $term = $wpdb->get_row("SELECT term_id FROM wp_terms WHERE slug = 'active' LIMIT 1;");
  • track-connect/trunk/includes/class-listings-search-widget.php

    r1310556 r1311161  
    7878       
    7979        // For locations only
     80        $nodeTypes = $wpdb->get_results("SELECT id, name, type_id FROM wp_track_node_types WHERE active = 1 ORDER BY name;");
     81           
     82        echo '<span class="search-locations-header"><b>Locations</b></span>';   
     83        $current = ! empty( $wp_query->query_vars['tax_query'][0]['terms'] ) ? $wp_query->query_vars['tax_query'][0]['terms'] : '';
     84       
     85        echo "<select name='locations' id='locations' class='wp-listings-taxonomy'>\n\t";
     86        echo "\t<option value='0'  >All</option>\n";
     87        foreach ( $nodeTypes as $type ) {
     88           
     89            echo "\t<optgroup label='$type->name'>\n";
     90            $nodes = $wpdb->get_results("SELECT name, slug FROM wp_terms WHERE node_type_id = ".$type->type_id." ORDER BY name;");
     91            foreach($nodes as $node){
     92                $selected = ( $node->slug == $locations)?' SELECTED ':'';
     93                echo "\t<option value='{$node->slug}'  $selected  >{$node->name}</option>\n";
     94            }
     95            echo "\t</optgroup>\n";
     96        }
     97        echo '</select><br>';
     98                   
     99        /*  OLD LOCATION SEARCH
    80100        foreach ( $listings_taxonomies as $tax => $data ) {
    81101            if($tax != 'locations'){
     
    98118            echo '</select><br>';
    99119        }
     120        */
    100121       
    101122        // For amenities/features only
  • track-connect/trunk/plugin.php

    r1311153 r1311161  
    77    Author URI: http://www.trackhs.com
    88
    9     Version: 1.9.2
     9    Version: 1.9.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.9.2' );
     57    define( 'WP_LISTINGS_VERSION', '1.9.3' );
    5858
    5959    /** Load textdomain for translation */
  • track-connect/trunk/readme.txt

    r1311153 r1311161  
    44Requires at least: 3.7
    55Tested up to: 4.2.3
    6 Stable tag: 1.9.2
     6Stable tag: 1.9.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.