WP Staging – DB & File Duplicator & Migration - Version 2.5.1

Version Description

  • Fix: WP Staging > Tools > System Info does not open
  • New: Open system info log file directly via wp staging > tools
Download this release

Release Info

Developer ReneHermi
Plugin Icon 128x128 WP Staging – DB & File Duplicator & Migration
Version 2.5.1
Comparing to
See all releases

Code changes from version 2.5.0 to 2.5.1

apps/Backend/Administrator.php CHANGED
@@ -238,8 +238,9 @@ class Administrator extends InjectionAware {
238
  public function getToolsPage() {
239
  // Tabs
240
  $tabs = new Tabs( array(
241
- "import_export" => __( "Import/Export", "wp-staging" ),
242
- "system_info" => __( "System Info", "wp-staging" )
 
243
  ) );
244
 
245
  $this->di->set( "tabs", $tabs );
238
  public function getToolsPage() {
239
  // Tabs
240
  $tabs = new Tabs( array(
241
+
242
+ "system_info" => __( "System Info", "wp-staging" ),
243
+ "import_export" => __( "Import/Export", "wp-staging" )
244
  ) );
245
 
246
  $this->di->set( "tabs", $tabs );
apps/Backend/Modules/SystemInfo.php CHANGED
@@ -428,7 +428,7 @@ class SystemInfo extends InjectionAware {
428
  $output .= $this->info( "Upload Max Filesize:", ini_get( "upload_max_filesize" ) );
429
  $output .= $this->info( "Time Limit:", ini_get( "max_execution_time" ) );
430
  $output .= $this->info( "Max Input Vars:", ini_get( "max_input_vars" ) );
431
- $output .= $this->info( "PHP User:", $this->getPHPUser() );
432
 
433
  $displayErrors = ini_get( "display_errors" );
434
  $output .= $this->info( "Display Errors:", ($displayErrors) ? "On ({$displayErrors})" : "N/A" );
@@ -445,9 +445,9 @@ class SystemInfo extends InjectionAware {
445
  $user = '';
446
 
447
  if( extension_loaded( 'posix' ) ) {
448
- $file = WPSTG_PLUGIN_DIR . 'wp-staging-pro.php';
449
  $user = posix_getpwuid( fileowner( $file ) );
450
- return $user;
451
  }
452
 
453
  if( function_exists( 'exec' ) && @exec('echo EXEC') == 'EXEC') {
428
  $output .= $this->info( "Upload Max Filesize:", ini_get( "upload_max_filesize" ) );
429
  $output .= $this->info( "Time Limit:", ini_get( "max_execution_time" ) );
430
  $output .= $this->info( "Max Input Vars:", ini_get( "max_input_vars" ) );
431
+ //$output .= $this->info( "PHP User:", $this->getPHPUser() );
432
 
433
  $displayErrors = ini_get( "display_errors" );
434
  $output .= $this->info( "Display Errors:", ($displayErrors) ? "On ({$displayErrors})" : "N/A" );
445
  $user = '';
446
 
447
  if( extension_loaded( 'posix' ) ) {
448
+ $file = WPSTG_PLUGIN_DIR . 'wp-staging.php';
449
  $user = posix_getpwuid( fileowner( $file ) );
450
+ return isset($user['name']) ? $user['name'] : 'can not detect php user name';
451
  }
452
 
453
  if( function_exists( 'exec' ) && @exec('echo EXEC') == 'EXEC') {
apps/Backend/views/tools/index.php CHANGED
@@ -2,7 +2,7 @@
2
  <ul class="nav-tab-wrapper">
3
  <?php
4
  $tabs = $this->di->get("tabs")->get();
5
- $activeTab = (isset($_GET["tab"]) && array_key_exists($_GET["tab"], $tabs)) ? $_GET["tab"] : "import_export";
6
 
7
  # Loop through tabs
8
  foreach ($tabs as $id => $name):
2
  <ul class="nav-tab-wrapper">
3
  <?php
4
  $tabs = $this->di->get("tabs")->get();
5
+ $activeTab = (isset($_GET["tab"]) && array_key_exists($_GET["tab"], $tabs)) ? $_GET["tab"] : "system_info";
6
 
7
  # Loop through tabs
8
  foreach ($tabs as $id => $name):
apps/Core/Utils/Browser.php CHANGED
@@ -1,5 +1,5 @@
1
  <?php
2
- namespace WPStaging\Library;
3
 
4
  /**
5
  * Modified to remove var
1
  <?php
2
+ namespace WPStaging\Utils;
3
 
4
  /**
5
  * Modified to remove var
readme.txt CHANGED
@@ -9,7 +9,7 @@ License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
  Tags: staging, duplication, cloning, clone, migration, sandbox, test site, testing, backup, post, admin, administration, duplicate posts
10
  Requires at least: 3.6+
11
  Tested up to: 5.1
12
- Stable tag: 2.5.0
13
  Requires PHP: 5.3
14
 
15
  A duplicator plugin! Clone, duplicate and migrate live sites to independent staging and development sites that are available only to administrators.
@@ -146,6 +146,10 @@ https://wp-staging.com
146
 
147
  == Changelog ==
148
 
 
 
 
 
149
  = 2.5.0 =
150
  * Fix: Do not exclude db.php if it is not located in the wp-content folder
151
  * Fix: Select All button for db tables not working properly
9
  Tags: staging, duplication, cloning, clone, migration, sandbox, test site, testing, backup, post, admin, administration, duplicate posts
10
  Requires at least: 3.6+
11
  Tested up to: 5.1
12
+ Stable tag: 2.5.1
13
  Requires PHP: 5.3
14
 
15
  A duplicator plugin! Clone, duplicate and migrate live sites to independent staging and development sites that are available only to administrators.
146
 
147
  == Changelog ==
148
 
149
+ = 2.5.1 =
150
+ * Fix: WP Staging > Tools > System Info does not open
151
+ * New: Open system info log file directly via wp staging > tools
152
+
153
  = 2.5.0 =
154
  * Fix: Do not exclude db.php if it is not located in the wp-content folder
155
  * Fix: Select All button for db tables not working properly
wp-staging.php CHANGED
@@ -7,7 +7,7 @@
7
  * Author: WP-Staging
8
  * Author URI: https://wp-staging.com
9
  * Contributors: ReneHermi, ilgityildirim
10
- * Version: 2.5.0
11
  * Text Domain: wp-staging
12
  * Domain Path: /languages/
13
 
@@ -51,7 +51,7 @@ if( !defined( 'WPSTG_PLUGIN_URL' ) ) {
51
 
52
  // Version
53
  if( !defined( 'WPSTG_VERSION' ) ) {
54
- define( 'WPSTG_VERSION', '2.5.0' );
55
  }
56
 
57
  // Must use version of the optimizer
7
  * Author: WP-Staging
8
  * Author URI: https://wp-staging.com
9
  * Contributors: ReneHermi, ilgityildirim
10
+ * Version: 2.5.1
11
  * Text Domain: wp-staging
12
  * Domain Path: /languages/
13
 
51
 
52
  // Version
53
  if( !defined( 'WPSTG_VERSION' ) ) {
54
+ define( 'WPSTG_VERSION', '2.5.1' );
55
  }
56
 
57
  // Must use version of the optimizer