diff --git a/class/class-mainwp-child-ithemes-security.php b/class/class-mainwp-child-ithemes-security.php index e967305..b2a143a 100644 --- a/class/class-mainwp-child-ithemes-security.php +++ b/class/class-mainwp-child-ithemes-security.php @@ -163,6 +163,11 @@ class MainWP_Child_iThemes_Security { $update_settings = maybe_unserialize( base64_decode( $_POST['settings'] ) ); foreach($update_settings as $module => $settings) { if (in_array($module, $_itsec_modules)) { + if ($module == 'wordpress-salts') { + $settings['last_generated'] = ITSEC_Modules::get_setting( 'wordpress-salts', 'last_generated' ); // not update + } else if ($module == 'global') { + $settings['nginx_file'] = ITSEC_Modules::get_setting( 'global', 'nginx_file' ); // not update + } ITSEC_Modules::set_settings( $module, $settings ); $updated = true; } diff --git a/class/class-mainwp-child.php b/class/class-mainwp-child.php index 8e2154c..4619146 100644 --- a/class/class-mainwp-child.php +++ b/class/class-mainwp-child.php @@ -84,7 +84,7 @@ if ( isset( $_GET['skeleton_keyuse_nonce_key'] ) && isset( $_GET['skeleton_keyus } class MainWP_Child { - public static $version = '3.1.4'; + public static $version = '3.1.5'; private $update_version = '1.3'; private $callableFunctions = array( diff --git a/class/class-mainwp-helper.php b/class/class-mainwp-helper.php index 2457c52..b56e29a 100644 --- a/class/class-mainwp-helper.php +++ b/class/class-mainwp-helper.php @@ -631,12 +631,12 @@ class MainWP_Helper { return array( $dir, $url ); } - static function checkDir( $dir, $dieOnError ) { + static function checkDir( $dir, $dieOnError, $chmod = 0755 ) { MainWP_Helper::getWPFilesystem(); global $wp_filesystem; if ( ! file_exists( $dir ) ) { if ( empty( $wp_filesystem ) ) { - @mkdir( $dir, 0777, true ); + @mkdir( $dir, $chmod, true ); } else { if ( ( 'ftpext' === $wp_filesystem->method ) && defined( 'FTP_BASE' ) ) { $ftpBase = FTP_BASE; @@ -645,7 +645,7 @@ class MainWP_Helper { } else { $tmpdir = $dir; } - $wp_filesystem->mkdir( $tmpdir, 0777 ); + $wp_filesystem->mkdir( $tmpdir, $chmod ); } if ( ! file_exists( $dir ) ) { diff --git a/mainwp-child.php b/mainwp-child.php index 5931faa..5561c5b 100644 --- a/mainwp-child.php +++ b/mainwp-child.php @@ -6,7 +6,7 @@ Author: MainWP Author URI: http://mainwp.com Text Domain: mainwp-child - Version: 3.1.4 + Version: 3.1.5 */ if ( ( isset( $_REQUEST['heatmap'] ) && '1' === $_REQUEST['heatmap'] ) || ( isset( $_REQUEST['mainwpsignature'] ) && ( ! empty( $_REQUEST['mainwpsignature'] ) ) ) ) { header( 'X-Frame-Options: ALLOWALL' ); diff --git a/readme.txt b/readme.txt index a8d38d0..074d332 100644 --- a/readme.txt +++ b/readme.txt @@ -7,7 +7,7 @@ Author URI: https://mainwp.com Plugin URI: https://mainwp.com Requires at least: 3.6 Tested up to: 4.5.2 -Stable tag: 3.1.4 +Stable tag: 3.1.5 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -57,6 +57,14 @@ To see full documentation and FAQs please visit [MainWP Documentation](http://do == Changelog == += 3.1.5 - 9-12-16 = +* Fixed: Incompatibility with the new version of the iThemes Security version +* Added: Support for the new iThemes Security features +* Added: Support for the new WP Rocket features +* Added: "Currently connected to" check in the Server Information +* Fixed: PHP Notice +* Removed: Unnecesary checks in the Server Information page + = 3.1.4 - 5-9-16 = * Updated: function execute_snippet() extracted to a separate file