Skip to content

Commit a3eeb8a

Browse files
committed
v4.4.8.2 beta
1 parent 39e9d56 commit a3eeb8a

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Redux Changelog
22

3-
## 4.4.8.1
3+
## 4.4.8.2
44
* Modified: Rollback changes made to the filesystem class. It's causing issues for some users that I cannot reproduce.
55

66
## 4.4.8

redux-core/framework.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
require_once __DIR__ . '/class-redux-core.php';
3434

35-
Redux_Core::$version = '4.4.8.1';
35+
Redux_Core::$version = '4.4.8.2';
3636
Redux_Core::$redux_path = __DIR__;
3737
Redux_Core::instance();
3838

redux-core/inc/classes/class-redux-filesystem.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ public function put_contents( string $abs_path, string $contents, string $perms
532532

533533
// phpcs:ignore WordPress.PHP.NoSilencedErrors
534534
// @codingStandardsIgnoreStart
535-
$return = is_writable( $abs_path ) ? @file_put_contents( $abs_path, $contents ) : false;
535+
$return = @file_put_contents( $abs_path, $contents );
536536
// @codingStandardsIgnoreEnd
537537
$this->chmod( $abs_path );
538538

@@ -542,9 +542,7 @@ public function put_contents( string $abs_path, string $contents, string $perms
542542

543543
if ( ! $return && $this->use_filesystem ) {
544544
$abs_path = $this->get_sanitized_path( $abs_path );
545-
546-
// phpcs:ignore WordPressVIPMinimum.Functions.RestrictedFunctions.file_ops_is_writable, WordPress.WP.AlternativeFunctions.file_system_operations_is_writable
547-
$return = is_writable( $abs_path ) && $this->wp_filesystem->put_contents( $abs_path, $contents, $perms );
545+
$return = $this->wp_filesystem->put_contents( $abs_path, $contents, $perms );
548546
}
549547

550548
return (bool) $return;
@@ -808,7 +806,7 @@ public function mkdir( string $abs_path, int $perms = null ): bool {
808806

809807
try {
810808
// phpcs:ignore WordPressVIPMinimum.Functions.RestrictedFunctions.file_ops_is_writable, WordPress.WP.AlternativeFunctions.file_system_operations_is_writable
811-
$mkdirp = is_writable( $abs_path ) && wp_mkdir_p( $abs_path );
809+
$mkdirp = wp_mkdir_p( $abs_path );
812810
} catch ( Exception $e ) {
813811
$mkdirp = false;
814812
}

redux-framework.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Plugin URI: http://wordpress.org/plugins/redux-framework
99
* GitHub URI: reduxframework/redux-framework
1010
* Description: Build better sites in WordPress fast!
11-
* Version: 4.4.8.1
11+
* Version: 4.4.8.2
1212
* Requires at least: 5.0
1313
* Requires PHP: 7.1
1414
* Author: Team Redux

0 commit comments

Comments
 (0)