Changeset 2927232
- Timestamp:
- 06/16/2023 10:40:12 PM (3 years ago)
- Location:
- kvcore-idx/trunk
- Files:
-
- 3 edited
-
includes/kvcore/class-api.php (modified) (2 diffs)
-
includes/kvcore/class-listing.php (modified) (1 diff)
-
kvcore-idx.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kvcore-idx/trunk/includes/kvcore/class-api.php
r2905673 r2927232 137 137 const MULTIPLE_VALUE_FILTERS = ['options', 'propertyViews', 'propertyTypes', 'styles', 'buildingStyles', 'keywords']; 138 138 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 ) { 140 140 if ( is_array( $body ) ) { 141 141 $body = http_build_query( $body ); … … 177 177 178 178 // 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 } 179 182 if (strpos($url, 'public/listings') !== false && $asArray) { 180 183 return json_decode(wp_remote_retrieve_body($response), true); -
kvcore-idx/trunk/includes/kvcore/class-listing.php
r2905673 r2927232 118 118 $url .= "&isSold=1"; 119 119 } 120 $response = Api::request( 'GET', $url, [], $includeFeaturedAgent );120 $response = Api::request( 'GET', $url, [], $includeFeaturedAgent, false, true ); 121 121 122 122 return !empty($response->data) ? $response->data : null; -
kvcore-idx/trunk/kvcore-idx.php
r2927230 r2927232 17 17 * Plugin URI: kvcore-idx 18 18 * 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.1 019 * Version: 2.3.11 20 20 * Author: Inside Real Estate 21 21 * Author URI: https://insiderealestate.com/kvcore/ … … 33 33 34 34 if( ! defined( 'KVCORE_IDX_PLUGIN_VERSION' ) ) { 35 define( 'KVCORE_IDX_PLUGIN_VERSION', '2.3.1 0' );35 define( 'KVCORE_IDX_PLUGIN_VERSION', '2.3.11' ); 36 36 } 37 37
Note: See TracChangeset
for help on using the changeset viewer.