Changeset 3136158
- Timestamp:
- 08/15/2024 02:04:53 PM (20 months ago)
- Location:
- mlsimport
- Files:
-
- 4 edited
- 1 copied
-
tags/5.8.2 (copied) (copied from mlsimport/trunk)
-
tags/5.8.2/includes/ThemeImport.php (modified) (3 diffs)
-
tags/5.8.2/mlsimport.php (modified) (2 diffs)
-
trunk/includes/ThemeImport.php (modified) (3 diffs)
-
trunk/mlsimport.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
mlsimport/tags/5.8.2/includes/ThemeImport.php
r3134790 r3136158 858 858 update_post_meta($propertyId, 'ListingKey', $ListingKey); 859 859 $keep_on_delete='delete'; 860 if( !in_array($status,$mlsImportItemStatusDelete)){860 if( is_array($mlsImportItemStatusDelete) && !in_array($status,$mlsImportItemStatusDelete)){ 861 861 $keep_on_delete='keep'; 862 862 update_post_meta($propertyId, 'mlsImportItemStatusDelete', $keep_on_delete); … … 875 875 876 876 $keep_on_delete='delete'; 877 if( !in_array($status,$mlsImportItemStatusDelete)){877 if(is_array($mlsImportItemStatusDelete) && !in_array($status,$mlsImportItemStatusDelete)){ 878 878 $keep_on_delete='keep'; 879 879 update_post_meta($propertyId, 'mlsImportItemStatusDelete', $keep_on_delete); … … 943 943 private function updateExistingProperty($propertyId,$mlsImportItemStatusDelete, $content, $listingPostType, $newAuthor, $status, $mlsImportItemStatus, &$propertyHistory, $tipImport, $ListingKey) { 944 944 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)) { 948 950 $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; 949 951 $this->deleteProperty($propertyId, $ListingKey); -
mlsimport/tags/5.8.2/mlsimport.php
r3134790 r3136158 4 4 * Plugin URI: https://mlsimport.com/ 5 5 * 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. 16 * Version: 5.8.2 7 7 * Requires at least: 5.2 8 8 * Requires PHP: 7.2 … … 21 21 22 22 23 define( 'MLSIMPORT_VERSION', '5.8. 1' );23 define( 'MLSIMPORT_VERSION', '5.8.2' ); 24 24 define( 'MLSIMPORT_CLUBLINK', 'mlsimport.com' ); 25 25 define( 'MLSIMPORT_CLUBLINKSSL', 'https' ); -
mlsimport/trunk/includes/ThemeImport.php
r3134790 r3136158 858 858 update_post_meta($propertyId, 'ListingKey', $ListingKey); 859 859 $keep_on_delete='delete'; 860 if( !in_array($status,$mlsImportItemStatusDelete)){860 if( is_array($mlsImportItemStatusDelete) && !in_array($status,$mlsImportItemStatusDelete)){ 861 861 $keep_on_delete='keep'; 862 862 update_post_meta($propertyId, 'mlsImportItemStatusDelete', $keep_on_delete); … … 875 875 876 876 $keep_on_delete='delete'; 877 if( !in_array($status,$mlsImportItemStatusDelete)){877 if(is_array($mlsImportItemStatusDelete) && !in_array($status,$mlsImportItemStatusDelete)){ 878 878 $keep_on_delete='keep'; 879 879 update_post_meta($propertyId, 'mlsImportItemStatusDelete', $keep_on_delete); … … 943 943 private function updateExistingProperty($propertyId,$mlsImportItemStatusDelete, $content, $listingPostType, $newAuthor, $status, $mlsImportItemStatus, &$propertyHistory, $tipImport, $ListingKey) { 944 944 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)) { 948 950 $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; 949 951 $this->deleteProperty($propertyId, $ListingKey); -
mlsimport/trunk/mlsimport.php
r3134790 r3136158 4 4 * Plugin URI: https://mlsimport.com/ 5 5 * 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. 16 * Version: 5.8.2 7 7 * Requires at least: 5.2 8 8 * Requires PHP: 7.2 … … 21 21 22 22 23 define( 'MLSIMPORT_VERSION', '5.8. 1' );23 define( 'MLSIMPORT_VERSION', '5.8.2' ); 24 24 define( 'MLSIMPORT_CLUBLINK', 'mlsimport.com' ); 25 25 define( 'MLSIMPORT_CLUBLINKSSL', 'https' );
Note: See TracChangeset
for help on using the changeset viewer.