• Tecology

    (@tonybaker3061)


    Hi Mehadi,

    There are some issues with the current 0.0.3 release and some of the native WordPress blocks are not working. Please see the vanilla install demos below highlighting the issue.

    Look forward to hearing from you. Best Wishes, Tony

    Thumbnail for video

    Watch Video

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Tecology

    (@tonybaker3061)

    Hi Mehadi,

    As a quick follow-up, the error is related to the theme scripts.php file and the enqueuing of the spectra scripts. If I remove this function, the error with the native blocks is removed. Obviously, this isn’t the complete solution, but I thought it might be helpful to point this in the right direction. I can see that you watched part of the video I provided, if you need any further information please let me know.

    Best Regards, Tony

    /**
    
    * Enqueue Editor Scripts.
    
    *
    
    * @since 0.0.1
    
    *
    
    * @return void
    
    */
    
    function enqueue_editor_scripts(): void {
    
    if ( false === apply_filters( 'swt_enqueue_editor_scripts', true ) ) {
    
    return;
    
    }
    
    $js = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? get_uri() . 'build/' : get_uri() . 'assets/js/';
    
    $asset = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? require SWT_DIR . 'build/editor.asset.php' : require SWT_DIR . 'assets/js/editor.asset.php';
    
    $deps = $asset['dependencies'];
    
    wp_register_script( SWT_SLUG . '-editor', $js . 'editor.js', $deps, SWT_VER, true );
    
    wp_enqueue_script( SWT_SLUG . '-editor' );
    
    wp_localize_script(
    
    SWT_SLUG . '-editor',
    
    SWT_LOC,
    
    localize_editor_script()
    
    );
    
    }
    
    add_action( 'enqueue_block_editor_assets', SWT_NS . 'enqueue_editor_scripts' );
    
    

    Hi @tonybaker3061

    I was able to replicate the problem. I appreciate you informing us of this. We will investigate this and find a solution as soon as possible. Hopefully, we’ll be able to resolve it with a release.

    Thanks again.

    Thread Starter Tecology

    (@tonybaker3061)

    Thanks Mehadi, I will look out for the minor release resolving the issue.

    Hi @tonybaker3061,

    We have released an update of Spectra one 0.0.5. Please update and let us know whether you are still experiencing issues.

    Have a good one!

    Thread Starter Tecology

    (@tonybaker3061)

    Hi @judith0 , thanks for the update, which has resolved the issue.

    Cheers! ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Native Block Errors with WP 6.2 release’ is closed to new replies.