InfiniteWP Client - Version 1.2.1

Version Description

  • Fix: Fatal error calling prefix method while cloning a fresh package to existing site
Download this release

Release Info

Developer infinitewp
Plugin Icon 128x128 InfiniteWP Client
Version 1.2.1
Comparing to
See all releases

Code changes from version 1.2.0 to 1.2.1

Files changed (3) hide show
  1. backup.class.php +2 -2
  2. init.php +2 -2
  3. readme.txt +3 -0
backup.class.php CHANGED
@@ -1530,7 +1530,7 @@ function iwp_mmb_direct_to_any_copy($source, $destination, $overwrite = false, $
1530
 
1531
 
1532
  //Replace options and content urls
1533
- if ($overwrite) {
1534
  //Get New Table prefix
1535
  $new_table_prefix = trim($this->get_table_prefix());
1536
  //Retrieve old wp_config
@@ -1552,7 +1552,7 @@ function iwp_mmb_direct_to_any_copy($source, $destination, $overwrite = false, $
1552
  $wp_filesystem->put_contents($remote_abspath . 'wp-config.php', $new_lines);
1553
 
1554
  //@unlink(ABSPATH . 'iwp-temp-wp-config.php');
1555
- $wp_filesystem->prefix($remote_abspath . 'iwp-temp-wp-config.php', false, 'f');
1556
 
1557
  //Replace options
1558
  $query = "SELECT option_value FROM " . $new_table_prefix . "options WHERE option_name = 'home'";
1530
 
1531
 
1532
  //Replace options and content urls
1533
+ if ($overwrite) {//fresh WP package to existing site
1534
  //Get New Table prefix
1535
  $new_table_prefix = trim($this->get_table_prefix());
1536
  //Retrieve old wp_config
1552
  $wp_filesystem->put_contents($remote_abspath . 'wp-config.php', $new_lines);
1553
 
1554
  //@unlink(ABSPATH . 'iwp-temp-wp-config.php');
1555
+ $wp_filesystem->delete($remote_abspath . 'iwp-temp-wp-config.php', false, 'f');
1556
 
1557
  //Replace options
1558
  $query = "SELECT option_value FROM " . $new_table_prefix . "options WHERE option_name = 'home'";
init.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: InfiniteWP - Client
4
  Plugin URI: http://infinitewp.com/
5
  Description: This is the client plugin of InfiniteWP that communicates with the InfiniteWP Admin panel.
6
  Author: Revmakx
7
- Version: 1.2.0
8
  Author URI: http://www.revmakx.com
9
  */
10
  /************************************************************
@@ -26,7 +26,7 @@ Author URI: http://www.revmakx.com
26
  **************************************************************/
27
 
28
  if(!defined('IWP_MMB_CLIENT_VERSION'))
29
- define('IWP_MMB_CLIENT_VERSION', '1.2.0');
30
 
31
 
32
  if ( !defined('IWP_MMB_XFRAME_COOKIE')){
4
  Plugin URI: http://infinitewp.com/
5
  Description: This is the client plugin of InfiniteWP that communicates with the InfiniteWP Admin panel.
6
  Author: Revmakx
7
+ Version: 1.2.1
8
  Author URI: http://www.revmakx.com
9
  */
10
  /************************************************************
26
  **************************************************************/
27
 
28
  if(!defined('IWP_MMB_CLIENT_VERSION'))
29
+ define('IWP_MMB_CLIENT_VERSION', '1.2.1');
30
 
31
 
32
  if ( !defined('IWP_MMB_XFRAME_COOKIE')){
readme.txt CHANGED
@@ -48,6 +48,9 @@ Credits: [Vladimir Prelovac](http://prelovac.com/vladimir) for his worker plugin
48
 
49
  == Changelog ==
50
 
 
 
 
51
  = 1.2.0 =
52
  * Improvement: Backup fail safe option now uses only php db dump and pclZip
53
  * Improvement: Better feedback regarding completion of backups even in case of error
48
 
49
  == Changelog ==
50
 
51
+ = 1.2.1 =
52
+ * Fix: Fatal error calling prefix method while cloning a fresh package to existing site
53
+
54
  = 1.2.0 =
55
  * Improvement: Backup fail safe option now uses only php db dump and pclZip
56
  * Improvement: Better feedback regarding completion of backups even in case of error