Plugin Directory

Changeset 1245641


Ignore:
Timestamp:
09/15/2015 06:04:39 AM (10 years ago)
Author:
trackhs
Message:

1.7.3 fixes

Location:
track-connect/trunk
Files:
3 edited

Legend:

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

    r1244800 r1245641  
    6969                $unitsUpdated++;
    7070                $post_id = $post->post_id;
    71                 $youtube_id = $wpdb->get_row("SELECT meta_value FROM wp_postmeta WHERE meta_key = '_listing_youtube_id' LIMIT 1;");
     71                $youtube_id = null;
     72                $youtube = $wpdb->get_row("SELECT meta_value FROM wp_postmeta WHERE meta_key = '_listing_youtube_id' LIMIT 1;");
     73                if($youtube->meta_value){
     74                    $youtube_id = $youtube->meta_value;
     75                }
    7276                $wpdb->query("DELETE FROM wp_postmeta WHERE post_id = '".$post_id."' AND meta_key != '_thumbnail_id'  ;");
    7377                $wpdb->query( $wpdb->prepare(
     
    109113                        $post_id,'_listing_domain', $domain,
    110114                        $post_id,'_listing_first_image', $unit->images[0]->url,
    111                         $post_id,'_listing_youtube_id', (!$youtube_id->meta_value)?null:$youtube_id->meta_value
     115                        $post_id,'_listing_youtube_id', (!$youtube_id)?null:$youtube_id
    112116                    )
    113117                ));
  • track-connect/trunk/plugin.php

    r1244800 r1245641  
    77    Author URI: http://www.trackhs.com
    88
    9     Version: 1.7.2
     9    Version: 1.7.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.7.2' );
     57    define( 'WP_LISTINGS_VERSION', '1.7.3' );
    5858
    5959    /** Load textdomain for translation */
  • track-connect/trunk/readme.txt

    r1244800 r1245641  
    44Requires at least: 3.7
    55Tested up to: 4.2.3
    6 Stable tag: 1.7.2
     6Stable tag: 1.7.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.