Skip to content

Asset registration regression #10

Description

@svandragt

Hello, thanks for writing this plugin!

On one site where this plugin is used, we noticed multiple JavaScript script errors appearing across all pages following a recent deployment. The errors indicate missing asset dependencies in the WordPress block editor stack, causing a cascade failure rooted in wp-edit-post. In version version 1.4.3 the following lines were changed:

a25f447

# 1.4.2
add_action( 'enqueue_block_editor_assets', array( $this, 'add_editor_assets' ) );
add_action( 'enqueue_block_editor_assets', array( $this, 'add_init_scripts' ) );

#1.4.3
add_action( 'enqueue_block_assets', array( $this, 'add_editor_assets' ) );
add_action( 'enqueue_block_assets', array( $this, 'add_init_scripts' ) );

This results in editor styles loading in the public frontend (at least on older WordPress versions). Also editor-sidebar cannot load because wp-edit-post is missing. wp-edit-post itself is failing to load due to a long chain of missing dependencies including react-jsx-runtime, wp-block-editor, wp-components, and others.

We fixed it by pinning version 1.4.2 but thought it would be best to report it!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions