Skip to content
This repository was archived by the owner on Dec 4, 2019. It is now read-only.

Commit 40fb702

Browse files
committed
Redux dev
1 parent cd5ee30 commit 40fb702

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Objects/ReduxConfig.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ public static function hide_redux_plugin() {
6767
public static function loadRedux() {
6868
if ( ! class_exists( Redux::class, false ) ) {
6969
global $WPlusPlusCore;
70-
if ( file_exists( $f = $WPlusPlusCore->file( 'plugins/redux-dev/redux-framework.php' ) ) ) {
70+
$folder = WP_DEBUG ? 'redux-dev' : 'redux-framework';
71+
if ( file_exists( $f = $WPlusPlusCore->file( "plugins/$folder/redux-framework.php" ) ) ) {
7172
require_once $f;
7273
}
7374
}

0 commit comments

Comments
 (0)