Skip to content

Commit ac26642

Browse files
committed
Merge origin/master
2 parents 10cf910 + 9c2e12e commit ac26642

File tree

4 files changed

+15
-7
lines changed

4 files changed

+15
-7
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ Send me an email at [email protected] so I can add you to our user sp
7878

7979
### Master ###
8080

81+
= 3.3.3.8 =
82+
* Fixed: Issues with file writing. Basically many users don't install WordPress with all the permissions
83+
correct. So... Had to move it back to /uploads/. Sorry Otto, that's just how it is.
84+
8185
= 3.3.3.7 =
8286
* Fixed: #1440 - flaw in new cleanFilePath logic.
8387

ReduxCore/framework.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class ReduxFramework {
6565
// ATTENTION DEVS
6666
// Please update the build number with each push, no matter how small.
6767
// This will make for easier support when we ask users what version they are using.
68-
public static $_version = '3.3.3.7';
68+
public static $_version = '3.3.3.8';
6969
public static $_dir;
7070
public static $_url;
7171
public static $_upload_dir;
@@ -346,8 +346,8 @@ public function __construct( $sections = array(), $args = array(), $extra_tabs =
346346
} // __construct()
347347

348348
private function set_redux_content() {
349-
self::$_upload_dir = Redux_Helpers::cleanFilePath(trailingslashit( WP_CONTENT_DIR )) . '/redux/';
350-
self::$_upload_url = Redux_Helpers::cleanFilePath(trailingslashit( content_url() )) . '/redux/';
349+
self::$_upload_dir = Redux_Helpers::cleanFilePath(trailingslashit( WP_CONTENT_DIR )) . '/uploads/redux/';
350+
self::$_upload_url = Redux_Helpers::cleanFilePath(trailingslashit( content_url() )) . '/uploads/redux/';
351351

352352
if ( ! is_dir( self::$_upload_dir ) ) {
353353
// Create the directory

ReduxCore/inc/class.redux_filesystem.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,12 @@ public function execute($action, $file, $params = '') {
4646
if (!is_admin()) {
4747
return;
4848
}
49-
50-
request_filesystem_credentials($url, '', true, false);
49+
// Never load this unless we're on the panel page.
50+
if ( is_admin() && isset( $_GET['page'] ) && $_GET['page'] == $this->parent->args['page_slug'] ) {
51+
$creds = request_filesystem_credentials($url, '', false, false);
52+
} else {
53+
return;
54+
}
5155
return true;
5256
}
5357

@@ -73,4 +77,4 @@ public function execute($action, $file, $params = '') {
7377
return $res;
7478
}
7579
}
76-
}
80+
}

redux-framework.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* Description: Redux is a simple, truly extensible options framework for WordPress themes and plugins.
1313
* Author: Team Redux
1414
* Author URI: http://reduxframework.com
15-
* Version: 3.3.3.7
15+
* Version: 3.3.3.8
1616
* Text Domain: redux-framework
1717
* License: GPL3+
1818
* License URI: http://www.gnu.org/licenses/gpl-3.0.txt

0 commit comments

Comments
 (0)