diff --git a/class.redux-plugin.php b/class.redux-plugin.php index dd8cc552a..f0ad8727b 100644 --- a/class.redux-plugin.php +++ b/class.redux-plugin.php @@ -184,7 +184,12 @@ private function hooks() { } public function load_first() { - $path = str_replace( WP_PLUGIN_DIR . '/', '', __FILE__ ); + $plugin_dir = Redux_Helpers::cleanFilePath(WP_PLUGIN_DIR) . '/'; + $self_file = Redux_Helpers::cleanFilePath( __FILE__ ); + + $path = str_replace( $plugin_dir , '', $self_file ); + $path = str_replace('class.redux-plugin.php', 'redux-framework.php', $path); + if ( $plugins = get_option( 'active_plugins' ) ) { if ( $key = array_search( $path, $plugins ) ) { array_splice( $plugins, $key, 1 );