Plugin Directory

Changeset 3217625


Ignore:
Timestamp:
01/06/2025 11:12:01 AM (15 months ago)
Author:
revmakx
Message:

release 1.1.7

Location:
local-sync/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • local-sync/trunk/README.txt

    r2969699 r3217625  
    44Tags: clone, migrate, wp duplicate, wpduplicate, copy site, local sync, local site, dev site, duplicate site, duplicator, cloning, migration, simple cloning, easiest cloning, free cloning
    55Requires at least: 3.0.1
    6 Tested up to: 6.3.1
    7 Stable tag: 1.1.6
     6Tested up to: 6.7.1
     7Stable tag: 1.1.7
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5151
    5252== 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.
    5358= 1.1.6 =
    5459*Release Date - 21 Sep 2023*
  • local-sync/trunk/admin/class-local-sync-admin.php

    r2929976 r3217625  
    433433
    434434    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        }
    435448        $this->local_sync_options->set_option('prod_key', '');
    436449
     
    14201433
    14211434    public function local_sync_get_tables() {
     1435        $this->app_functions->verify_ajax_requests();
    14221436
    14231437        $this->exclude_option = new Local_Sync_Exclude_Option();
  • local-sync/trunk/admin/class-local-sync-app-functions.php

    r2928566 r3217625  
    144144
    145145        //Check request made by admin
    146         if (!is_admin()) {
     146        if (!current_user_can('manage_options')) {
    147147            local_sync_die_with_json_encode(array(
    148148                'error' => true,
  • local-sync/trunk/admin/js/local-sync-admin.js

    r2749602 r3217625  
    695695            'security': losy_ajax_nonce,
    696696            'data': {
    697            
     697                hash: jQuery(this).attr('hash')
    698698            }
    699699        };
     
    717717            if(typeof response.error != 'undefined'){
    718718
     719                alert('Error: ' + response.error);
    719720            } else {
    720721                window.location.reload();
  • local-sync/trunk/admin/views/local-sync-settings-display.php

    r2749602 r3217625  
    4646    $prod_site_url = $all_configs['prod_site_url'] ?? '';
    4747    $prod_key = $all_configs['prod_key'] ?? '';
     48    $prod_key_hash = md5($prod_key);
    4849   
    4950    $local_site_settings = $all_configs['local_site_settings'] ?? false;
     
    178179                            <em>This is a clone of the Production site at </em><br>
    179180                            <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">
    181182                        </div>
    182183                        <div class="pad">
  • local-sync/trunk/local-sync-constants.php

    r2969699 r3217625  
    7676
    7777    public function versions(){
    78         $this->define( 'LOCAL_SYNC_VERSION', '1.1.6' );
     78        $this->define( 'LOCAL_SYNC_VERSION', '1.1.7' );
    7979        $this->define( 'LOCAL_SYNC_DATABASE_VERSION', '1.0' );
    8080    }
  • local-sync/trunk/local-sync.php

    r2969699 r3217625  
    1212 * Plugin URI:        https://localsync.io
    1313 * Description:       Easily migrate your WordPress Site from one host to another.
    14  * Version:           1.1.6
     14 * Version:           1.1.7
    1515 * Author:            Revmakx
    1616 * Author URI:        https://revmakx.com
Note: See TracChangeset for help on using the changeset viewer.