Plugin Directory

Changeset 3389138


Ignore:
Timestamp:
11/03/2025 08:12:46 PM (5 months ago)
Author:
PropertyHive
Message:

Update to version 2.5.32

Location:
houzez-property-feed/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • houzez-property-feed/trunk/README.txt

    r3385319 r3389138  
    44Requires at least: 3.8
    55Tested up to: 6.8
    6 Stable tag: 2.5.31
     6Stable tag: 2.5.32
    77Version: 2.5.31
    88Homepage: https://houzezpropertyfeed.com
     
    144144== Changelog ==
    145145
     146= 2.5.32 - 2025-11-03 =
     147* Field rules to cater for fields that are arrays
     148* Improved detection of rental properties in Inmovilla format
     149* Added 'provincia' to list of inmovilla address fields
     150
    146151= 2.5.31 - 2025-10-27 =
    147152* Added 'Verkauft' status to Propstack settings and mappings
  • houzez-property-feed/trunk/houzez-property-feed.php

    r3385319 r3389138  
    44 * Plugin Uri: https://houzezpropertyfeed.com
    55 * Description: Automatically import properties to Houzez from estate agency CRMs and export to portals
    6  * Version: 2.5.31
     6 * Version: 2.5.32
    77 * Author: PropertyHive
    88 * Author URI: https://wp-property-hive.com
     
    2020     * @var string
    2121     */
    22     public $version = '2.5.31';
     22    public $version = '2.5.32';
    2323
    2424    /**
  • houzez-property-feed/trunk/includes/class-houzez-property-feed-import.php

    r3358551 r3389138  
    834834                            }
    835835                            elseif (
    836                                 ( !isset($rule['operator']) || ( isset($rule['operator']) && $rule['operator'] == '=' ) ) && trim($value_to_check) == $rule['equal']
    837                             )
    838                             {
    839                                 $found = true;
    840                             }
    841                             elseif (
    842                                 ( isset($rule['operator']) && $rule['operator'] == '!=' ) && trim($value_to_check) != $rule['equal']
    843                             )
    844                             {
    845                                 $found = true;
    846                             }
    847                             elseif (
    848                                 ( isset($rule['operator']) && $rule['operator'] == 'like' ) && strpos(trim($value_to_check), $rule['equal']) !== false
     836                                ( !isset($rule['operator']) || ( isset($rule['operator']) && $rule['operator'] == '=' ) )
     837                                && (
     838                                    ( is_array($value_to_check) && (function() use ($value_to_check, $rule) {
     839                                        foreach ($value_to_check as $v) {
     840                                            if (trim((string)$v) == $rule['equal']) return true;
     841                                        }
     842                                        return false;
     843                                    })() )
     844                                    || ( !is_array($value_to_check) && trim((string)$value_to_check) == $rule['equal'] )
     845                                )
     846                            )
     847                            {
     848                                $found = true;
     849                            }
     850                            elseif (
     851                                ( isset($rule['operator']) && $rule['operator'] == '!=' )
     852                                && (
     853                                    ( is_array($value_to_check) && (function() use ($value_to_check, $rule) {
     854                                        foreach ($value_to_check as $v) {
     855                                            if (trim((string)$v) == $rule['equal']) return false; // any equal ⇒ fail
     856                                        }
     857                                        return true; // none equal ⇒ pass
     858                                    })() )
     859                                    || ( !is_array($value_to_check) && trim((string)$value_to_check) != $rule['equal'] )
     860                                )
     861                            )
     862                            {
     863                                $found = true;
     864                            }
     865                            elseif (
     866                                ( isset($rule['operator']) && $rule['operator'] == 'like' )
     867                                && (
     868                                    ( is_array($value_to_check) && (function() use ($value_to_check, $rule) {
     869                                        foreach ($value_to_check as $v) {
     870                                            if (is_scalar($v) && strpos(trim((string)$v), $rule['equal']) !== false) return true;
     871                                        }
     872                                        return false;
     873                                    })() )
     874                                    || ( !is_array($value_to_check) && strpos(trim((string)$value_to_check), $rule['equal']) !== false )
     875                                )
    849876                            )
    850877                            {
  • houzez-property-feed/trunk/includes/format-functions.php

    r3385319 r3389138  
    14261426                )
    14271427            ),
    1428             'address_fields' => array( 'ciudad', 'zona' ),
     1428            'address_fields' => array( 'provincia', 'ciudad', 'zona' ),
    14291429            'taxonomy_values' => array(
    14301430                'sales_status' => array(
  • houzez-property-feed/trunk/includes/import-formats/class-houzez-property-feed-format-inmovilla.php

    r3370837 r3389138  
    273273
    274274                $department = 'residential-sales';
    275                 if ( (string)$property->accion == 'Alquilar' )
     275                if ( strpos((string)$property->accion, 'Alquilar') !== false )
    276276                {
    277277                    $department = 'residential-lettings';
Note: See TracChangeset for help on using the changeset viewer.