Changeset 3217625
- Timestamp:
- 01/06/2025 11:12:01 AM (15 months ago)
- Location:
- local-sync/trunk
- Files:
-
- 7 edited
-
README.txt (modified) (2 diffs)
-
admin/class-local-sync-admin.php (modified) (2 diffs)
-
admin/class-local-sync-app-functions.php (modified) (1 diff)
-
admin/js/local-sync-admin.js (modified) (2 diffs)
-
admin/views/local-sync-settings-display.php (modified) (2 diffs)
-
local-sync-constants.php (modified) (1 diff)
-
local-sync.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
local-sync/trunk/README.txt
r2969699 r3217625 4 4 Tags: clone, migrate, wp duplicate, wpduplicate, copy site, local sync, local site, dev site, duplicate site, duplicator, cloning, migration, simple cloning, easiest cloning, free cloning 5 5 Requires at least: 3.0.1 6 Tested up to: 6. 3.17 Stable tag: 1.1. 66 Tested up to: 6.7.1 7 Stable tag: 1.1.7 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 51 51 52 52 == Changelog == 53 = 1.1.7 = 54 *Release Date - 06 Jan 2025* 55 56 * Improvement : Improved site reset mechanism. 57 * Improvement : Tested upto WP 6.7.1. 53 58 = 1.1.6 = 54 59 *Release Date - 21 Sep 2023* -
local-sync/trunk/admin/class-local-sync-admin.php
r2929976 r3217625 433 433 434 434 public function process_remove_site() { 435 $this->app_functions->verify_ajax_requests(); 436 437 $this_hash = $_POST['data']['hash']; 438 $old_prod_key = $this->local_sync_options->get_option('prod_key'); 439 $old_prod_key_hash = md5($old_prod_key); 440 441 if($old_prod_key_hash != $this_hash){ 442 local_sync_die_with_json_encode_simple(array( 443 'error' => 'Cannot reset site, Hash mismatched', 444 )); 445 446 return; 447 } 435 448 $this->local_sync_options->set_option('prod_key', ''); 436 449 … … 1420 1433 1421 1434 public function local_sync_get_tables() { 1435 $this->app_functions->verify_ajax_requests(); 1422 1436 1423 1437 $this->exclude_option = new Local_Sync_Exclude_Option(); -
local-sync/trunk/admin/class-local-sync-app-functions.php
r2928566 r3217625 144 144 145 145 //Check request made by admin 146 if (! is_admin()) {146 if (!current_user_can('manage_options')) { 147 147 local_sync_die_with_json_encode(array( 148 148 'error' => true, -
local-sync/trunk/admin/js/local-sync-admin.js
r2749602 r3217625 695 695 'security': losy_ajax_nonce, 696 696 'data': { 697 697 hash: jQuery(this).attr('hash') 698 698 } 699 699 }; … … 717 717 if(typeof response.error != 'undefined'){ 718 718 719 alert('Error: ' + response.error); 719 720 } else { 720 721 window.location.reload(); -
local-sync/trunk/admin/views/local-sync-settings-display.php
r2749602 r3217625 46 46 $prod_site_url = $all_configs['prod_site_url'] ?? ''; 47 47 $prod_key = $all_configs['prod_key'] ?? ''; 48 $prod_key_hash = md5($prod_key); 48 49 49 50 $local_site_settings = $all_configs['local_site_settings'] ?? false; … … 178 179 <em>This is a clone of the Production site at </em><br> 179 180 <input style="width: 340px; height: 30px;" type="text" readonly name="prod_site_url_losy" class="prod_site_url_losy" value="<?php echo $prod_site_url; ?>"> 180 <input type="submit" style="float: right; margin-top: 2px;" class="button remove_site_losy" value="Reset">181 <input type="submit" style="float: right; margin-top: 2px;" hash="<?php echo $prod_key_hash; ?>" class="button remove_site_losy" value="Reset"> 181 182 </div> 182 183 <div class="pad"> -
local-sync/trunk/local-sync-constants.php
r2969699 r3217625 76 76 77 77 public function versions(){ 78 $this->define( 'LOCAL_SYNC_VERSION', '1.1. 6' );78 $this->define( 'LOCAL_SYNC_VERSION', '1.1.7' ); 79 79 $this->define( 'LOCAL_SYNC_DATABASE_VERSION', '1.0' ); 80 80 } -
local-sync/trunk/local-sync.php
r2969699 r3217625 12 12 * Plugin URI: https://localsync.io 13 13 * Description: Easily migrate your WordPress Site from one host to another. 14 * Version: 1.1. 614 * Version: 1.1.7 15 15 * Author: Revmakx 16 16 * Author URI: https://revmakx.com
Note: See TracChangeset
for help on using the changeset viewer.