Changeset 3248887
- Timestamp:
- 03/01/2025 01:45:16 PM (12 months ago)
- Location:
- arvancloud-object-storage
- Files:
-
- 28 added
- 4 deleted
- 16 edited
- 1 copied
-
tags/1.13.0 (copied) (copied from arvancloud-object-storage/trunk)
-
tags/1.13.0/.sass-cache/32b89677879965b6be8bad98b2c86dd737f4b768 (added)
-
tags/1.13.0/.sass-cache/32b89677879965b6be8bad98b2c86dd737f4b768/_general.scssc (added)
-
tags/1.13.0/.sass-cache/32b89677879965b6be8bad98b2c86dd737f4b768/main.scssc (added)
-
tags/1.13.0/.sass-cache/85317ee9d143ea2a29430116b19bd3ab46bc9650 (added)
-
tags/1.13.0/.sass-cache/85317ee9d143ea2a29430116b19bd3ab46bc9650/_badge.scssc (added)
-
tags/1.13.0/.sass-cache/85317ee9d143ea2a29430116b19bd3ab46bc9650/_box.scssc (added)
-
tags/1.13.0/.sass-cache/85317ee9d143ea2a29430116b19bd3ab46bc9650/_buttons.scssc (added)
-
tags/1.13.0/.sass-cache/85317ee9d143ea2a29430116b19bd3ab46bc9650/_footer.scssc (added)
-
tags/1.13.0/.sass-cache/85317ee9d143ea2a29430116b19bd3ab46bc9650/_form.scssc (added)
-
tags/1.13.0/.sass-cache/85317ee9d143ea2a29430116b19bd3ab46bc9650/_header.scssc (added)
-
tags/1.13.0/.sass-cache/85317ee9d143ea2a29430116b19bd3ab46bc9650/_modal.scssc (added)
-
tags/1.13.0/.sass-cache/85317ee9d143ea2a29430116b19bd3ab46bc9650/_progress.scssc (added)
-
tags/1.13.0/.sass-cache/85317ee9d143ea2a29430116b19bd3ab46bc9650/_tab.scssc (added)
-
tags/1.13.0/.sass-cache/85317ee9d143ea2a29430116b19bd3ab46bc9650/_utilities.scssc (added)
-
tags/1.13.0/.sass-cache/ca8d04a8a1e43f524617a6f00ed6fd40471ee363 (deleted)
-
tags/1.13.0/.sass-cache/d1be79c77ac09fbf30414624bb47350aa433f8b9 (deleted)
-
tags/1.13.0/README.txt (modified) (3 diffs)
-
tags/1.13.0/admin/partials/partial-bulk-upload-modal.php (modified) (1 diff)
-
tags/1.13.0/assets/js/bulkops.js (modified) (9 diffs)
-
tags/1.13.0/inc/Admin/Admin.php (modified) (1 diff)
-
tags/1.13.0/inc/Admin/Controllers/BulkDownloadController.php (modified) (4 diffs)
-
tags/1.13.0/inc/Admin/Controllers/BulkUploaderController.php (modified) (3 diffs)
-
tags/1.13.0/vendor/composer/installed.php (modified) (2 diffs)
-
tags/1.13.0/wp-arvancloud-storage.php (modified) (2 diffs)
-
trunk/.sass-cache/32b89677879965b6be8bad98b2c86dd737f4b768 (added)
-
trunk/.sass-cache/32b89677879965b6be8bad98b2c86dd737f4b768/_general.scssc (added)
-
trunk/.sass-cache/32b89677879965b6be8bad98b2c86dd737f4b768/main.scssc (added)
-
trunk/.sass-cache/85317ee9d143ea2a29430116b19bd3ab46bc9650 (added)
-
trunk/.sass-cache/85317ee9d143ea2a29430116b19bd3ab46bc9650/_badge.scssc (added)
-
trunk/.sass-cache/85317ee9d143ea2a29430116b19bd3ab46bc9650/_box.scssc (added)
-
trunk/.sass-cache/85317ee9d143ea2a29430116b19bd3ab46bc9650/_buttons.scssc (added)
-
trunk/.sass-cache/85317ee9d143ea2a29430116b19bd3ab46bc9650/_footer.scssc (added)
-
trunk/.sass-cache/85317ee9d143ea2a29430116b19bd3ab46bc9650/_form.scssc (added)
-
trunk/.sass-cache/85317ee9d143ea2a29430116b19bd3ab46bc9650/_header.scssc (added)
-
trunk/.sass-cache/85317ee9d143ea2a29430116b19bd3ab46bc9650/_modal.scssc (added)
-
trunk/.sass-cache/85317ee9d143ea2a29430116b19bd3ab46bc9650/_progress.scssc (added)
-
trunk/.sass-cache/85317ee9d143ea2a29430116b19bd3ab46bc9650/_tab.scssc (added)
-
trunk/.sass-cache/85317ee9d143ea2a29430116b19bd3ab46bc9650/_utilities.scssc (added)
-
trunk/.sass-cache/ca8d04a8a1e43f524617a6f00ed6fd40471ee363 (deleted)
-
trunk/.sass-cache/d1be79c77ac09fbf30414624bb47350aa433f8b9 (deleted)
-
trunk/README.txt (modified) (3 diffs)
-
trunk/admin/partials/partial-bulk-upload-modal.php (modified) (1 diff)
-
trunk/assets/js/bulkops.js (modified) (9 diffs)
-
trunk/inc/Admin/Admin.php (modified) (1 diff)
-
trunk/inc/Admin/Controllers/BulkDownloadController.php (modified) (4 diffs)
-
trunk/inc/Admin/Controllers/BulkUploaderController.php (modified) (3 diffs)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/wp-arvancloud-storage.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
arvancloud-object-storage/tags/1.13.0/README.txt
r3243158 r3248887 5 5 Tested up to: 6.7 6 6 Requires PHP: 7.1 7 Stable tag: 1.1 2.07 Stable tag: 1.13.0 8 8 License: GPLv3 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 48 48 49 49 == Changelog == 50 = 1.13.0 - 2025-03-01 = 51 * fix: Resolved the issue with permanent file deletion 52 * improvement: Enhanced bulk upload and bulk download operations 53 50 54 = 1.12.0 - 2025-02-19 = 51 55 * feature: Added new WP CLI commands for better control over plugin operations. Includes: … … 59 63 60 64 For more details, use: `wp ac-storage help` 61 62 65 63 66 = 1.11.1 - 2025-02-09 = -
arvancloud-object-storage/tags/1.13.0/admin/partials/partial-bulk-upload-modal.php
r3243158 r3248887 120 120 jQuery(document).ready(function () { 121 121 /* Runs when form loaded if current scheduled process is running */ 122 update_progress_form('get_bulk_upload_task_status'); 122 <?php 123 global $wpdb; 124 $active = $wpdb->get_var("select ifnull(count(id),0) from {$wpdb->prefix}obs_operations where operation='UPLOAD' and status='pending'"); 125 //prevent show complete in loop if task is complete 126 if(!empty($active)) 127 echo "update_progress_form('get_bulk_upload_task_status');"; 128 ?> 129 }); 123 130 124 }); 125 126 var input = document.querySelector('textarea[name=file_ext]'); 127 new Tagify(input); 131 var input = document.querySelector('textarea[name=file_ext]'); 132 new Tagify(input); 128 133 </script> -
arvancloud-object-storage/tags/1.13.0/assets/js/bulkops.js
r3237224 r3248887 13 13 '_nonce': acs_media.nonces.generate_acl_url 14 14 }, 15 timeout: 30000, 15 16 success:function(data) { 16 17 … … 69 70 url: acs_media.ajax_url, 70 71 data: data, 72 timeout: 30000, 71 73 success: function (response) { 72 console.log( response);74 console.log('submit: '.response); 73 75 success_handler(response, status_action); 74 76 jQuery('#submit-form-acceptance').removeClass('loading'); … … 78 80 }, 79 81 failed: function (response) { 80 console.log(response);81 82 jQuery('#form-acceptance-response-fail').text(response.data.message); 82 83 jQuery('#form-acceptance-response-fail').show(); … … 104 105 'action': action, 105 106 }, 106 107 timeout: 30000, 107 108 success: function (raw_response, e) { 108 109 … … 120 121 }, 121 122 failed: function (response) { 122 console.error( response);123 console.error('stop: '.response); 123 124 } 124 125 }) … … 173 174 function update_progress_form(action) { 174 175 175 let timeOutResult = set Timeout(function () {176 let timeOutResult = setInterval(function () { 176 177 get_schedule_status(function (response) { 177 console.log(response.hasOwnProperty('ref_msg'));178 178 179 if (response.task_status === 'processing') { 179 180 … … 191 192 if(response.message && jQuery('#task-status-modal bdi').length==0 && jQuery('#task-status-modal-percentage-text').is(":visible")){ 192 193 jQuery(response.message).insertAfter('#task-status-modal .obs-progress'); 193 console.log((jQuery('#task-status-modal-percentage-text').is(":visible")?'true':'false'));194 194 195 } 195 196 if (response.hasOwnProperty('ref_msg')){ 196 alert('complete suceess'); 197 window.location.reload(true); 197 jQuery('#stop-current-task').hide(); 198 alert(response.ref_msg); 199 /*setTimeout(function() { 200 window.location.reload(true); 201 }, 5000);*/ 202 203 clearInterval(timeOutResult); 198 204 } 199 205 return; 200 206 } 201 207 /* Recurse it */ 202 update_progress_form(action);208 //update_progress_form(action); 203 209 204 210 }, action); 205 211 206 }, 1500);212 }, 5000); 207 213 208 214 } … … 217 223 'action': action, 218 224 }, 219 225 timeout: 30000, 220 226 success: function (raw_response, e) { 221 227 … … 228 234 }, 229 235 failed: function (response) { 230 console.error( response);236 console.error('scheduler:'.response); 231 237 } 232 238 }) -
arvancloud-object-storage/tags/1.13.0/inc/Admin/Admin.php
r3243158 r3248887 679 679 680 680 $acs_settings = get_option( 'acs_settings' ); 681 if( false == $acs_settings['sync-attachment-deletion'])681 if(isset($acs_settings['sync-attachment-deletion']) and false == $acs_settings['sync-attachment-deletion']) 682 682 return; 683 683 -
arvancloud-object-storage/tags/1.13.0/inc/Admin/Controllers/BulkDownloadController.php
r3243158 r3248887 109 109 foreach ($all_downloadable_file_names as $source_file) { 110 110 111 112 111 113 $is_already_pending = $memory_db->get_option_by_fields(array( 112 114 'operation'=>'DOWNLOAD', … … 118 120 continue; 119 121 120 $result = $s3client->getObjectTagging([121 'Bucket' => $bucket,122 'Key' => $source_file,123 ]);124 122 /*$result = $s3client->getObjectTagging([ 123 'Bucket' => $bucket, 124 'Key' => $source_file, 125 ]); 126 125 127 if(!isset($result['TagSet'][0]['Key'])) 126 128 continue; 127 129 */ 128 130 $memory_db->create_operation(array( 129 131 'operation'=>'DOWNLOAD', … … 269 271 $bucket = Helper::get_bucket_name(); 270 272 271 272 273 $upload_dir = wp_upload_dir(); 273 274 … … 308 309 309 310 310 public function get_full_file_list($bucket){ 311 public function get_full_file_list($bucket=''){ 312 global $wpdb; 313 $bucket = empty($bucket)?$bucket = Helper::get_bucket_name():$bucket; 311 314 $s3client = (S3Singletone::get_instance())->get_s3client(); 312 $results = $s3client->getPaginator('ListObjectsV2', [315 $results = $s3client->getPaginator('ListObjectsV2', [ 313 316 'Bucket' => $bucket 314 317 ]); 315 316 318 $keys = array(); 317 319 318 320 foreach ($results->search('Contents[].Key') as $key) { 321 $filename = basename($key); 322 if(strpos(wp_check_filetype($filename , null )['type'], 'image/')===0){ 323 $f_name = preg_replace('/\-\d+x\d+\./','.',$filename); 324 if($filename != $f_name){ 325 $check = $wpdb->get_var("select post_id from $wpdb->postmeta where meta_key='_wp_attached_file' and meta_value like '%$f_name'"); 326 $filtered = array_filter($keys, function($item) use ($f_name) { 327 return strpos($item, $f_name) !== false; 328 }); 329 330 if(!empty($check) or !empty($filtered)) 331 continue; 332 } 333 } 319 334 $keys[] = $key; 320 335 } -
arvancloud-object-storage/tags/1.13.0/inc/Admin/Controllers/BulkUploaderController.php
r3243158 r3248887 250 250 )); 251 251 $date = date('Y-m-d H:i:s'); 252 file_put_contents($this->bulk_err_file, "[$date] [# $post_id] [".$e->getMessage()."]\n", FILE_APPEND);252 file_put_contents($this->bulk_err_file, "[$date] [#{$unserialized_key['post_id']}] [".$e->getMessage()."]\n", FILE_APPEND); 253 253 254 254 continue; … … 550 550 551 551 public function get_bulk_upload_task_status(){ 552 //in-progress 552 553 $memory_db = CustomDB::get_instance(); 553 554 … … 570 571 571 572 }else{ 572 573 $updir = wp_upload_dir(); 573 574 if( !(KueueCore::get_instance())->has_pending_job('obs_do_bulk_upload')){ 574 575 $option_values['task_status'] = 'done'; 575 576 if($option_values['files_count']>$option_values['processed_files_count']){ 576 $updir = wp_upload_dir();577 577 $option_values['message'] = sprintf("<p><bdi>%d ". __('item failed and skipped. ' ,'arvancloud-object-storage' ). ' <a href="'.$updir['baseurl'].'/bulk_upload.txt">'.__('Download Log','arvancloud-object-storage').'</a></bdi></p>', ($option_values['files_count']-$option_values['processed_files_count'])); 578 578 } 579 579 if($option_values['files_count']>0 and $option_values['processed_files_count']>0) 580 580 $option_values['ref_msg'] = __('The bulk upload operation has been successfully done','arvancloud-object-storage'); 581 } 582 581 }else{ 582 //end task if scheduler task is failed 583 global $wpdb; 584 $action = $wpdb->get_var("select status from {$wpdb->prefix}actionscheduler_actions where hook='obs_do_bulk_upload' order by action_id desc limit 1"); 585 if($action=='failed'){ 586 $option_values['message'] = sprintf("<p><bdi>%d ". __('item failed and skipped. ' ,'arvancloud-object-storage' ). ' <a href="'.$updir['baseurl'].'/bulk_upload.txt">'.__('Download Log','arvancloud-object-storage').'</a></bdi></p>', ($option_values['files_count']-$option_values['processed_files_count'])); 587 $option_values['ref_msg'] = __('The bulk upload operation has been failed done','arvancloud-object-storage'); 588 } 589 } 583 590 } 584 591 -
arvancloud-object-storage/tags/1.13.0/vendor/composer/installed.php
r3243158 r3248887 4 4 'pretty_version' => 'dev-master', 5 5 'version' => 'dev-master', 6 'reference' => ' db0ef1454413071850c2ec40154823a077857e9c',6 'reference' => '0e7132884dc1b3ab39b32007f142a3b0da346e61', 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 59 59 'pretty_version' => 'dev-master', 60 60 'version' => 'dev-master', 61 'reference' => ' db0ef1454413071850c2ec40154823a077857e9c',61 'reference' => '0e7132884dc1b3ab39b32007f142a3b0da346e61', 62 62 'type' => 'library', 63 63 'install_path' => __DIR__ . '/../../', -
arvancloud-object-storage/tags/1.13.0/wp-arvancloud-storage.php
r3243158 r3248887 10 10 * Plugin URI: https://www.arvancloud.com/fa/products/cloud-storage 11 11 * Description: Using ArvanCloud Storage Plugin you can offload, back up and upload your WordPress files and databases directly to your ArvanCloud object storage bucket. This easy-to-use plugin allows you to back up, restore and store your files simply and securely to a cost-effective, unlimited cloud storage. No need for expensive hosting services anymore. 12 * Version: 1.1 2.012 * Version: 1.13.0 13 13 * Author: ArvanCloud 14 14 * Author URI: https://www.arvancloud.com/en/products/cloud-storage … … 29 29 } 30 30 31 define( 'ACS_VERSION', '1.1 2.0' );31 define( 'ACS_VERSION', '1.13.0' ); 32 32 define( 'ACS_NAME', __( 'ArvanCloud Storage', 'arvancloud-object-storage' ) ); 33 33 define( 'ACS_SLUG', 'wp-arvancloud-storage'); -
arvancloud-object-storage/trunk/README.txt
r3243158 r3248887 5 5 Tested up to: 6.7 6 6 Requires PHP: 7.1 7 Stable tag: 1.1 2.07 Stable tag: 1.13.0 8 8 License: GPLv3 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 48 48 49 49 == Changelog == 50 = 1.13.0 - 2025-03-01 = 51 * fix: Resolved the issue with permanent file deletion 52 * improvement: Enhanced bulk upload and bulk download operations 53 50 54 = 1.12.0 - 2025-02-19 = 51 55 * feature: Added new WP CLI commands for better control over plugin operations. Includes: … … 59 63 60 64 For more details, use: `wp ac-storage help` 61 62 65 63 66 = 1.11.1 - 2025-02-09 = -
arvancloud-object-storage/trunk/admin/partials/partial-bulk-upload-modal.php
r3243158 r3248887 120 120 jQuery(document).ready(function () { 121 121 /* Runs when form loaded if current scheduled process is running */ 122 update_progress_form('get_bulk_upload_task_status'); 122 <?php 123 global $wpdb; 124 $active = $wpdb->get_var("select ifnull(count(id),0) from {$wpdb->prefix}obs_operations where operation='UPLOAD' and status='pending'"); 125 //prevent show complete in loop if task is complete 126 if(!empty($active)) 127 echo "update_progress_form('get_bulk_upload_task_status');"; 128 ?> 129 }); 123 130 124 }); 125 126 var input = document.querySelector('textarea[name=file_ext]'); 127 new Tagify(input); 131 var input = document.querySelector('textarea[name=file_ext]'); 132 new Tagify(input); 128 133 </script> -
arvancloud-object-storage/trunk/assets/js/bulkops.js
r3237224 r3248887 13 13 '_nonce': acs_media.nonces.generate_acl_url 14 14 }, 15 timeout: 30000, 15 16 success:function(data) { 16 17 … … 69 70 url: acs_media.ajax_url, 70 71 data: data, 72 timeout: 30000, 71 73 success: function (response) { 72 console.log( response);74 console.log('submit: '.response); 73 75 success_handler(response, status_action); 74 76 jQuery('#submit-form-acceptance').removeClass('loading'); … … 78 80 }, 79 81 failed: function (response) { 80 console.log(response);81 82 jQuery('#form-acceptance-response-fail').text(response.data.message); 82 83 jQuery('#form-acceptance-response-fail').show(); … … 104 105 'action': action, 105 106 }, 106 107 timeout: 30000, 107 108 success: function (raw_response, e) { 108 109 … … 120 121 }, 121 122 failed: function (response) { 122 console.error( response);123 console.error('stop: '.response); 123 124 } 124 125 }) … … 173 174 function update_progress_form(action) { 174 175 175 let timeOutResult = set Timeout(function () {176 let timeOutResult = setInterval(function () { 176 177 get_schedule_status(function (response) { 177 console.log(response.hasOwnProperty('ref_msg'));178 178 179 if (response.task_status === 'processing') { 179 180 … … 191 192 if(response.message && jQuery('#task-status-modal bdi').length==0 && jQuery('#task-status-modal-percentage-text').is(":visible")){ 192 193 jQuery(response.message).insertAfter('#task-status-modal .obs-progress'); 193 console.log((jQuery('#task-status-modal-percentage-text').is(":visible")?'true':'false'));194 194 195 } 195 196 if (response.hasOwnProperty('ref_msg')){ 196 alert('complete suceess'); 197 window.location.reload(true); 197 jQuery('#stop-current-task').hide(); 198 alert(response.ref_msg); 199 /*setTimeout(function() { 200 window.location.reload(true); 201 }, 5000);*/ 202 203 clearInterval(timeOutResult); 198 204 } 199 205 return; 200 206 } 201 207 /* Recurse it */ 202 update_progress_form(action);208 //update_progress_form(action); 203 209 204 210 }, action); 205 211 206 }, 1500);212 }, 5000); 207 213 208 214 } … … 217 223 'action': action, 218 224 }, 219 225 timeout: 30000, 220 226 success: function (raw_response, e) { 221 227 … … 228 234 }, 229 235 failed: function (response) { 230 console.error( response);236 console.error('scheduler:'.response); 231 237 } 232 238 }) -
arvancloud-object-storage/trunk/inc/Admin/Admin.php
r3243158 r3248887 679 679 680 680 $acs_settings = get_option( 'acs_settings' ); 681 if( false == $acs_settings['sync-attachment-deletion'])681 if(isset($acs_settings['sync-attachment-deletion']) and false == $acs_settings['sync-attachment-deletion']) 682 682 return; 683 683 -
arvancloud-object-storage/trunk/inc/Admin/Controllers/BulkDownloadController.php
r3243158 r3248887 109 109 foreach ($all_downloadable_file_names as $source_file) { 110 110 111 112 111 113 $is_already_pending = $memory_db->get_option_by_fields(array( 112 114 'operation'=>'DOWNLOAD', … … 118 120 continue; 119 121 120 $result = $s3client->getObjectTagging([121 'Bucket' => $bucket,122 'Key' => $source_file,123 ]);124 122 /*$result = $s3client->getObjectTagging([ 123 'Bucket' => $bucket, 124 'Key' => $source_file, 125 ]); 126 125 127 if(!isset($result['TagSet'][0]['Key'])) 126 128 continue; 127 129 */ 128 130 $memory_db->create_operation(array( 129 131 'operation'=>'DOWNLOAD', … … 269 271 $bucket = Helper::get_bucket_name(); 270 272 271 272 273 $upload_dir = wp_upload_dir(); 273 274 … … 308 309 309 310 310 public function get_full_file_list($bucket){ 311 public function get_full_file_list($bucket=''){ 312 global $wpdb; 313 $bucket = empty($bucket)?$bucket = Helper::get_bucket_name():$bucket; 311 314 $s3client = (S3Singletone::get_instance())->get_s3client(); 312 $results = $s3client->getPaginator('ListObjectsV2', [315 $results = $s3client->getPaginator('ListObjectsV2', [ 313 316 'Bucket' => $bucket 314 317 ]); 315 316 318 $keys = array(); 317 319 318 320 foreach ($results->search('Contents[].Key') as $key) { 321 $filename = basename($key); 322 if(strpos(wp_check_filetype($filename , null )['type'], 'image/')===0){ 323 $f_name = preg_replace('/\-\d+x\d+\./','.',$filename); 324 if($filename != $f_name){ 325 $check = $wpdb->get_var("select post_id from $wpdb->postmeta where meta_key='_wp_attached_file' and meta_value like '%$f_name'"); 326 $filtered = array_filter($keys, function($item) use ($f_name) { 327 return strpos($item, $f_name) !== false; 328 }); 329 330 if(!empty($check) or !empty($filtered)) 331 continue; 332 } 333 } 319 334 $keys[] = $key; 320 335 } -
arvancloud-object-storage/trunk/inc/Admin/Controllers/BulkUploaderController.php
r3243158 r3248887 250 250 )); 251 251 $date = date('Y-m-d H:i:s'); 252 file_put_contents($this->bulk_err_file, "[$date] [# $post_id] [".$e->getMessage()."]\n", FILE_APPEND);252 file_put_contents($this->bulk_err_file, "[$date] [#{$unserialized_key['post_id']}] [".$e->getMessage()."]\n", FILE_APPEND); 253 253 254 254 continue; … … 550 550 551 551 public function get_bulk_upload_task_status(){ 552 //in-progress 552 553 $memory_db = CustomDB::get_instance(); 553 554 … … 570 571 571 572 }else{ 572 573 $updir = wp_upload_dir(); 573 574 if( !(KueueCore::get_instance())->has_pending_job('obs_do_bulk_upload')){ 574 575 $option_values['task_status'] = 'done'; 575 576 if($option_values['files_count']>$option_values['processed_files_count']){ 576 $updir = wp_upload_dir();577 577 $option_values['message'] = sprintf("<p><bdi>%d ". __('item failed and skipped. ' ,'arvancloud-object-storage' ). ' <a href="'.$updir['baseurl'].'/bulk_upload.txt">'.__('Download Log','arvancloud-object-storage').'</a></bdi></p>', ($option_values['files_count']-$option_values['processed_files_count'])); 578 578 } 579 579 if($option_values['files_count']>0 and $option_values['processed_files_count']>0) 580 580 $option_values['ref_msg'] = __('The bulk upload operation has been successfully done','arvancloud-object-storage'); 581 } 582 581 }else{ 582 //end task if scheduler task is failed 583 global $wpdb; 584 $action = $wpdb->get_var("select status from {$wpdb->prefix}actionscheduler_actions where hook='obs_do_bulk_upload' order by action_id desc limit 1"); 585 if($action=='failed'){ 586 $option_values['message'] = sprintf("<p><bdi>%d ". __('item failed and skipped. ' ,'arvancloud-object-storage' ). ' <a href="'.$updir['baseurl'].'/bulk_upload.txt">'.__('Download Log','arvancloud-object-storage').'</a></bdi></p>', ($option_values['files_count']-$option_values['processed_files_count'])); 587 $option_values['ref_msg'] = __('The bulk upload operation has been failed done','arvancloud-object-storage'); 588 } 589 } 583 590 } 584 591 -
arvancloud-object-storage/trunk/vendor/composer/installed.php
r3243158 r3248887 4 4 'pretty_version' => 'dev-master', 5 5 'version' => 'dev-master', 6 'reference' => ' db0ef1454413071850c2ec40154823a077857e9c',6 'reference' => '0e7132884dc1b3ab39b32007f142a3b0da346e61', 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 59 59 'pretty_version' => 'dev-master', 60 60 'version' => 'dev-master', 61 'reference' => ' db0ef1454413071850c2ec40154823a077857e9c',61 'reference' => '0e7132884dc1b3ab39b32007f142a3b0da346e61', 62 62 'type' => 'library', 63 63 'install_path' => __DIR__ . '/../../', -
arvancloud-object-storage/trunk/wp-arvancloud-storage.php
r3243158 r3248887 10 10 * Plugin URI: https://www.arvancloud.com/fa/products/cloud-storage 11 11 * Description: Using ArvanCloud Storage Plugin you can offload, back up and upload your WordPress files and databases directly to your ArvanCloud object storage bucket. This easy-to-use plugin allows you to back up, restore and store your files simply and securely to a cost-effective, unlimited cloud storage. No need for expensive hosting services anymore. 12 * Version: 1.1 2.012 * Version: 1.13.0 13 13 * Author: ArvanCloud 14 14 * Author URI: https://www.arvancloud.com/en/products/cloud-storage … … 29 29 } 30 30 31 define( 'ACS_VERSION', '1.1 2.0' );31 define( 'ACS_VERSION', '1.13.0' ); 32 32 define( 'ACS_NAME', __( 'ArvanCloud Storage', 'arvancloud-object-storage' ) ); 33 33 define( 'ACS_SLUG', 'wp-arvancloud-storage');
Note: See TracChangeset
for help on using the changeset viewer.