Skip to content

Admin assets not loading correctly #549

@godsdog

Description

@godsdog

I maybe found a bug in:
/includes/addons/styles-manager/blocks/gutenberghub-styles-manager-block.php

There is:
public function register() { register_block_type( EDITORSKIT_PLUGIN_DIR . 'build/styles-manager-block.json', array( 'render_callback' => array( $this, 'render' ), ) ); wp_register_script( 'gutenberghub-styles-manager-block-script', EDITORSKIT_PLUGIN_DIR . 'build/styles-manager-addon.js', array(), uniqid() ); }

But this should be use EDITORSKIT_PLUGIN_URL instead of EDITORSKIT_PLUGIN_DIR.

Because of that admin asset is loading like this:
https://www.domain.de/srv/www/www.domain.de/htdocs/wp-content/plugins/block-options/build/styles-manager-addon.js?ver=6698e5e09a256

but should be:
https://www.domain.de/wp-content/plugins/block-options/build/styles-manager-addon.js?ver=6698e5e09a256

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions