Plugin Directory

Changeset 3136158


Ignore:
Timestamp:
08/15/2024 02:04:53 PM (20 months ago)
Author:
mlsimport
Message:

Update to version 5.8.2 from GitHub

Location:
mlsimport
Files:
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • mlsimport/tags/5.8.2/includes/ThemeImport.php

    r3134790 r3136158  
    858858                update_post_meta($propertyId, 'ListingKey', $ListingKey);
    859859                $keep_on_delete='delete';
    860                 if(!in_array    ($status,$mlsImportItemStatusDelete)){
     860                if( is_array($mlsImportItemStatusDelete) && !in_array($status,$mlsImportItemStatusDelete)){
    861861                    $keep_on_delete='keep';
    862862                    update_post_meta($propertyId, 'mlsImportItemStatusDelete', $keep_on_delete);
     
    875875
    876876            $keep_on_delete='delete';
    877             if(!in_array    ($status,$mlsImportItemStatusDelete)){
     877            if(is_array($mlsImportItemStatusDelete) &&  !in_array($status,$mlsImportItemStatusDelete)){
    878878                $keep_on_delete='keep';
    879879                update_post_meta($propertyId, 'mlsImportItemStatusDelete', $keep_on_delete);
     
    943943    private function updateExistingProperty($propertyId,$mlsImportItemStatusDelete, $content, $listingPostType, $newAuthor, $status, $mlsImportItemStatus, &$propertyHistory, $tipImport, $ListingKey) {
    944944       
    945         $mlsImportItemStatusDelete = array_map('strtolower', $mlsImportItemStatusDelete);
    946 
    947         if (in_array($status, $mlsImportItemStatusDelete)) {
     945        if (is_array($mlsImportItemStatusDelete)) {
     946            $mlsImportItemStatusDelete = array_map('strtolower', $mlsImportItemStatusDelete);
     947        }
     948
     949        if (is_array($mlsImportItemStatusDelete) &&  in_array($status, $mlsImportItemStatusDelete)) {
    948950            $log = 'Property with ID ' . $propertyId . ' and with name ' . get_the_title($propertyId) . ' has a status of <strong>' . $status . '</strong> and will be deleted' . PHP_EOL;
    949951            $this->deleteProperty($propertyId, $ListingKey);
  • mlsimport/tags/5.8.2/mlsimport.php

    r3134790 r3136158  
    44 * Plugin URI:        https://mlsimport.com/
    55 * Description:       "MLS Import - The MLSImport plugin facilitates the connection to your real estate MLS database, allowing you to download and synchronize real estate property data from the MLS.
    6  * Version:           5.8.1
     6 * Version:           5.8.2
    77 * Requires at least: 5.2
    88 * Requires PHP:      7.2
     
    2121
    2222
    23 define( 'MLSIMPORT_VERSION', '5.8.1' );
     23define( 'MLSIMPORT_VERSION', '5.8.2' );
    2424define( 'MLSIMPORT_CLUBLINK', 'mlsimport.com' );
    2525define( 'MLSIMPORT_CLUBLINKSSL', 'https' );
  • mlsimport/trunk/includes/ThemeImport.php

    r3134790 r3136158  
    858858                update_post_meta($propertyId, 'ListingKey', $ListingKey);
    859859                $keep_on_delete='delete';
    860                 if(!in_array    ($status,$mlsImportItemStatusDelete)){
     860                if( is_array($mlsImportItemStatusDelete) && !in_array($status,$mlsImportItemStatusDelete)){
    861861                    $keep_on_delete='keep';
    862862                    update_post_meta($propertyId, 'mlsImportItemStatusDelete', $keep_on_delete);
     
    875875
    876876            $keep_on_delete='delete';
    877             if(!in_array    ($status,$mlsImportItemStatusDelete)){
     877            if(is_array($mlsImportItemStatusDelete) &&  !in_array($status,$mlsImportItemStatusDelete)){
    878878                $keep_on_delete='keep';
    879879                update_post_meta($propertyId, 'mlsImportItemStatusDelete', $keep_on_delete);
     
    943943    private function updateExistingProperty($propertyId,$mlsImportItemStatusDelete, $content, $listingPostType, $newAuthor, $status, $mlsImportItemStatus, &$propertyHistory, $tipImport, $ListingKey) {
    944944       
    945         $mlsImportItemStatusDelete = array_map('strtolower', $mlsImportItemStatusDelete);
    946 
    947         if (in_array($status, $mlsImportItemStatusDelete)) {
     945        if (is_array($mlsImportItemStatusDelete)) {
     946            $mlsImportItemStatusDelete = array_map('strtolower', $mlsImportItemStatusDelete);
     947        }
     948
     949        if (is_array($mlsImportItemStatusDelete) &&  in_array($status, $mlsImportItemStatusDelete)) {
    948950            $log = 'Property with ID ' . $propertyId . ' and with name ' . get_the_title($propertyId) . ' has a status of <strong>' . $status . '</strong> and will be deleted' . PHP_EOL;
    949951            $this->deleteProperty($propertyId, $ListingKey);
  • mlsimport/trunk/mlsimport.php

    r3134790 r3136158  
    44 * Plugin URI:        https://mlsimport.com/
    55 * Description:       "MLS Import - The MLSImport plugin facilitates the connection to your real estate MLS database, allowing you to download and synchronize real estate property data from the MLS.
    6  * Version:           5.8.1
     6 * Version:           5.8.2
    77 * Requires at least: 5.2
    88 * Requires PHP:      7.2
     
    2121
    2222
    23 define( 'MLSIMPORT_VERSION', '5.8.1' );
     23define( 'MLSIMPORT_VERSION', '5.8.2' );
    2424define( 'MLSIMPORT_CLUBLINK', 'mlsimport.com' );
    2525define( 'MLSIMPORT_CLUBLINKSSL', 'https' );
Note: See TracChangeset for help on using the changeset viewer.