• Owner of Redux here. Redux 4.0 is coming out in early June. In preparation for that, you have a small bit of code to change to make it fully compatible. You rendered the page in a unique way that we fear doesn’t work with Redux 4.0.

    Inside: ~/wp-mail-logging/src/WPML_OptionsManager.php change the following:

    
    case 'settings':
        $redux = WPML_Init::getInstance()->getService( 'redux' );
        $framework = $redux->ReduxFramework;
        if ( ! class_exists( 'reduxCorePanel' ) ) {
            $path = dirname( __DIR__ ) . '/lib/vendor/redux-framework/core/panel.php';
            require_once $path;
        }
        if ( ! class_exists( 'reduxCoreEnqueue' ) ) {
            $path = dirname( __DIR__ ) . '/lib/vendor/redux-framework/core/enqueue.php';
            require_once $path;
        }
        $enqueue = new \reduxCoreEnqueue ( $framework );
        $enqueue->init();
    
        $panel = new \reduxCorePanel ( $framework );
        $panel->init();
        break;
    

    to

    
    case 'settings':
        $redux = WPML_Init::getInstance()->getService( 'redux' );
        $framework = $redux->ReduxFramework;
    
    	if ( method_exists('Redux','render') ) {
    		\Redux::render($framework);
    	} else {
    		if ( ! class_exists( 'reduxCorePanel' ) ) {
    			$path = dirname( __DIR__ ) . '/lib/vendor/redux-framework/core/panel.php';
    			require_once $path;
    		}
    		if ( ! class_exists( 'reduxCoreEnqueue' ) ) {
    			$path = dirname( __DIR__ ) . '/lib/vendor/redux-framework/core/enqueue.php';
    			require_once $path;
    		}
    		$enqueue = new \reduxCoreEnqueue ( $framework );
    		$enqueue->init();
    
    		$panel = new \reduxCorePanel ( $framework );
    		$panel->init();
        }
        break;
    

    You inspired us, so we made a render function.

    You can try the new version of Redux here:
    https://github.com/reduxframework/redux-framework-4

    Thank you for your patience and thank you for using Redux.

  • The topic ‘Urgent: Compatibility Fix for Redux 4.0’ is closed to new replies.