• Unfortunately if Kioken Blocks is installed in latest WordPress + WooCommerce it breaks the WooCommerce type selection box on the product add/edit page. This is due to the kioken_editor_body_classes filter returning null if the kiokenblocks_editor_enhanced option is false.

    The code causing the issue is:

    public function kioken_editor_body_classes( $classes ) {
    		if ( ! get_option( 'kiokenblocks_editor_enhanced', false ) ) {
    					return;
    				}
    
    		$screen = get_current_screen();
    
    		if ( 'post' == $screen->base ) {
    					$classes .= ' kioken-limited-margins';
    				}
    
    		return $classes;
    	}

    It should return $classes not null.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Same here with WooCommerce 4.4.1 and Kioken 1.3.1 current Premium version.

    I commented this bit out:

    if ( ! get_option( 'kiokenblocks_editor_enhanced', false ) ) {
         return;
     }

    Seems to do no harm and all seems fine in WooCommerce and in the Kioken builder, apparently.

    Matt, could you confirm that as well?
    Thanks

    • This reply was modified 4 years, 6 months ago by Goodvalley.
    Thread Starter mattallenuk

    (@mattallenuk)

    Yes that will work, the correct fix though is:

    if ( ! get_option( 'kiokenblocks_editor_enhanced', false ) ) {
         return $classes;
     }

    Of course, you’re right. I’ve corrected it.

    Thanks very much.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Breaks WooCommerce 4.3+ in WP 5.5’ is closed to new replies.