Plugin Directory

Changeset 2927232


Ignore:
Timestamp:
06/16/2023 10:40:12 PM (3 years ago)
Author:
insiderealestate
Message:

Version 2.3.11

Location:
kvcore-idx/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • kvcore-idx/trunk/includes/kvcore/class-api.php

    r2905673 r2927232  
    137137    const MULTIPLE_VALUE_FILTERS = ['options', 'propertyViews', 'propertyTypes', 'styles', 'buildingStyles', 'keywords'];
    138138
    139     public static function request( $method, $endpoint, $body = null, $includeFeaturedAgent = null, $asArray = false ) {
     139    public static function request( $method, $endpoint, $body = null, $includeFeaturedAgent = null, $asArray = false, $isListingDetail = false ) {
    140140        if ( is_array( $body ) ) {
    141141            $body = http_build_query( $body );
     
    177177
    178178            // TODO: all calls should start handling it in array format not stdclass
     179            if (strpos($url, 'public/listings') !== false && $isListingDetail === true) {
     180                return json_decode(strip_tags(stripslashes($response['body'])), $asArray);
     181            }
    179182            if (strpos($url, 'public/listings') !== false && $asArray) {
    180183                return json_decode(wp_remote_retrieve_body($response), true);
  • kvcore-idx/trunk/includes/kvcore/class-listing.php

    r2905673 r2927232  
    118118            $url .= "&isSold=1";
    119119        }
    120         $response = Api::request( 'GET', $url, [], $includeFeaturedAgent );
     120        $response = Api::request( 'GET', $url, [], $includeFeaturedAgent, false, true );
    121121       
    122122        return !empty($response->data) ? $response->data : null;
  • kvcore-idx/trunk/kvcore-idx.php

    r2927230 r2927232  
    1717 * Plugin URI:        kvcore-idx
    1818 * Description:       Integrates seamlessly with kvCORE to bring the power of IDX search, high conversion lead capture, and much more to your WordPress site.
    19  * Version:           2.3.10
     19 * Version:           2.3.11
    2020 * Author:            Inside Real Estate
    2121 * Author URI:        https://insiderealestate.com/kvcore/
     
    3333
    3434if( ! defined( 'KVCORE_IDX_PLUGIN_VERSION' ) ) {
    35     define( 'KVCORE_IDX_PLUGIN_VERSION', '2.3.10' );
     35    define( 'KVCORE_IDX_PLUGIN_VERSION', '2.3.11' );
    3636}
    3737
Note: See TracChangeset for help on using the changeset viewer.