Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Admin assets not loading correctly #549

Open
godsdog opened this issue Jul 18, 2024 · 0 comments
Open

Admin assets not loading correctly #549

godsdog opened this issue Jul 18, 2024 · 0 comments

Comments

@godsdog
Copy link

godsdog commented Jul 18, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant