Changeset 2124051
- Timestamp:
- 07/16/2019 03:40:46 PM (7 years ago)
- Location:
- kiyoh-klantenvertellen
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kiyoh-klantenvertellen/tags/2.0.0/includes/class-kiyoh-klantenvertellen-plugin.php
r2124050 r2124051 1510 1510 1511 1511 $provider = $this->plugin_settings['general']['kk_provider']; 1512 1512 delete_transient('kk_plugin_backup'); 1513 1513 if($provider!="klantenvertellen_api" && $provider!="kiyoh_api" && get_transient('kk_plugin_backup')==false) { 1514 1514 $data = $this->get_data($provider); 1515 1515 $backup_data=get_option( 'kk_plugin_backup_'.$provider); 1516 1517 if($data=!$backup_data && !empty($data)) { 1518 update_option( 'kk_plugin_backup_'.$provider, json_encode($data), true ); 1516 1517 if(isset($data['reviews']) && !empty($data['reviews'])) { 1518 if($data!=$backup_data && !empty($data)) { 1519 update_option( 'kk_plugin_backup_'.$provider, $data ); 1520 } 1521 set_transient( 'kk_plugin_backup', strtotime('now'), 1*60*60 ); 1519 1522 } 1520 set_transient( 'kk_plugin_backup', strtotime('now'), 12*60*60 );1521 1523 } 1522 1524 return true; -
kiyoh-klantenvertellen/trunk/includes/class-kiyoh-klantenvertellen-plugin.php
r2124050 r2124051 1510 1510 1511 1511 $provider = $this->plugin_settings['general']['kk_provider']; 1512 1512 delete_transient('kk_plugin_backup'); 1513 1513 if($provider!="klantenvertellen_api" && $provider!="kiyoh_api" && get_transient('kk_plugin_backup')==false) { 1514 1514 $data = $this->get_data($provider); 1515 1515 $backup_data=get_option( 'kk_plugin_backup_'.$provider); 1516 1517 if($data=!$backup_data && !empty($data)) { 1518 update_option( 'kk_plugin_backup_'.$provider, json_encode($data), true ); 1516 1517 if(isset($data['reviews']) && !empty($data['reviews'])) { 1518 if($data!=$backup_data && !empty($data)) { 1519 update_option( 'kk_plugin_backup_'.$provider, $data ); 1520 } 1521 set_transient( 'kk_plugin_backup', strtotime('now'), 1*60*60 ); 1519 1522 } 1520 set_transient( 'kk_plugin_backup', strtotime('now'), 12*60*60 );1521 1523 } 1522 1524 return true;
Note: See TracChangeset
for help on using the changeset viewer.